public interface NetworkConnectionListener
The listener that will be called when the Android device's network connection type changes.
To listen for network changes, pass this listener to NetworkMonitor.NetworkMonitor(Context, NetworkConnectionListener)
,
and call NetworkMonitor.startMonitoringNetworkChanges()
.
Modifier and Type | Method and Description |
---|---|
void |
networkChanged(NetworkConnectionType newConnection)
Whenever the device's network connection changes to a different
NetworkConnectionType , this method gets called. |
void networkChanged(NetworkConnectionType newConnection)
NetworkConnectionType
, this method gets called.newConnection
- The new type of network connection.