public static class ConnectivityManager.NetworkCallback extends Object
| Constructor and Description | 
|---|
| NetworkCallback() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | onAvailable(Network network)Called when the framework connects and has declared new network ready for use. | 
| void | onCapabilitiesChanged(Network network,
                     NetworkCapabilities networkCapabilities)Called when the network the framework connected to for this request changes capabilities but still satisfies
 the stated need. | 
| void | onLost(Network network)Called when the framework has a hard loss of the network or when the graceful failure ends. | 
public void onAvailable(Network network)
Network that is satisfying the request changes.network - The Network of the satisfying network.public void onCapabilitiesChanged(Network network, NetworkCapabilities networkCapabilities)
network - The Network of the satisfying network.networkCapabilities - NetworkCapabilities: The new NetworkCapabilities for this network.