public class AdminService extends ConnectivityManager.NetworkCallback implements BackgroundService
RemoteCommandManager
and
ConnectivityManager
.Constructor and Description |
---|
AdminService()
Instantiates an
AdminService . |
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.
|
void |
onStart()
Starts the background service.
|
void |
onStop()
Stops the background service.
|
onCapabilitiesChanged
public AdminService()
AdminService
.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.public void onStart()
BackgroundService
onStart
in interface BackgroundService
public void onStop()
BackgroundService
All resources must have been released when this method returns.
onStop
in interface BackgroundService