AndroidNetworkConnectivity
Implementation of NetworkConnectivity for Android.
In the Android system, ConnectivityManager is used to monitor network connectivity states.
Note: This implementation requires the ACCESS_NETWORK_STATE
permission.
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Content copied to clipboard
Functions
Link copied to clipboard
Registers a listener to receive events.
Link copied to clipboard
Converts this Listenable into a Flow that emits events.
Link copied to clipboard
Checks if there are any registered listeners.
Link copied to clipboard
Notifies all registered listeners about an event.
Link copied to clipboard
Unregisters a listener from receiving events.