public static interface ConnectivityMonitor.Listener
ConnectivityMonitor
Modifier and Type | Method and Description |
---|---|
void |
onConnectivityChanged(boolean connected,
android.net.NetworkInfo networkInfo)
This method will be called whenever the host device's network connectivity state changes.
|
void onConnectivityChanged(boolean connected, @Nullable android.net.NetworkInfo networkInfo)
connected
- true if the host is currently connected to the network.networkInfo
- detailed information about the current network connection.