Skip to content

Commit f554497

Browse files
author
Chris Yang
authored
[connectivity] add more documentations, delete example/README (flutter#2262)
1 parent 4fd0aae commit f554497

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

packages/connectivity/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.5+4
2+
3+
* Stability and Maintainability: update documentations.
4+
15
## 0.4.5+3
26

37
* Remove AndroidX warnings.

packages/connectivity/example/README.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/connectivity/lib/connectivity.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import 'package:meta/meta.dart';
1515
/// None: Device not connected to any network
1616
enum ConnectivityResult { wifi, mobile, none }
1717

18+
/// Discover network connectivity configurations: Distinguish between WI-FI and cellular, check WI-FI status and more.
1819
class Connectivity {
1920
/// Constructs a singleton instance of [Connectivity].
2021
///
@@ -35,11 +36,13 @@ class Connectivity {
3536

3637
Stream<ConnectivityResult> _onConnectivityChanged;
3738

39+
/// Exposed for testing purposes and should not be used by users of the plugin.
3840
@visibleForTesting
3941
static const MethodChannel methodChannel = MethodChannel(
4042
'plugins.flutter.io/connectivity',
4143
);
4244

45+
/// Exposed for testing purposes and should not be used by users of the plugin.
4346
@visibleForTesting
4447
static const EventChannel eventChannel = EventChannel(
4548
'plugins.flutter.io/connectivity_status',

packages/connectivity/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for discovering the state of the network (WiFi &
33
mobile/cellular) connectivity on Android and iOS.
44
author: Flutter Team <[email protected]>
55
homepage: https://github.com/flutter/plugins/tree/master/packages/connectivity
6-
version: 0.4.5+3
6+
version: 0.4.5+4
77

88
flutter:
99
plugin:

0 commit comments

Comments
 (0)