public class OnNetworkStateChanged extends ConnectivityManager.NetworkCallback
| Constructor and Description | 
|---|
OnNetworkStateChanged()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
onAvailable(Network network)
Called when the framework connects and has declared new network ready for use. 
 | 
void | 
onLost(Network network)
Called when the framework has a hard loss of the network or when the graceful failure ends. 
 | 
onCapabilitiesChangedpublic void onAvailable(Network network)
ConnectivityManager.NetworkCallbackNetwork that is satisfying the request changes.onAvailable in class ConnectivityManager.NetworkCallbacknetwork - The Network of the satisfying network.public void onLost(Network network)
ConnectivityManager.NetworkCallbackonLost in class ConnectivityManager.NetworkCallbacknetwork - The Network lost.