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.
|
onCapabilitiesChanged
public void onAvailable(Network network)
ConnectivityManager.NetworkCallback
Network
that is satisfying the request changes.onAvailable
in class ConnectivityManager.NetworkCallback
network
- The Network
of the satisfying network.public void onLost(Network network)
ConnectivityManager.NetworkCallback
onLost
in class ConnectivityManager.NetworkCallback
network
- The Network
lost.