public static interface NetworkChangeDetector.Observer
Modifier and Type | Method and Description |
---|---|
void |
onConnectionTypeChanged(NetworkChangeDetector.ConnectionType newConnectionType)
Called when default network changes.
|
void |
onNetworkConnect(NetworkChangeDetector.NetworkInformation networkInfo) |
void |
onNetworkDisconnect(long networkHandle) |
void |
onNetworkPreference(java.util.List<NetworkChangeDetector.ConnectionType> types,
int preference)
Called when network preference change for a (list of) connection type(s).
|
void onConnectionTypeChanged(NetworkChangeDetector.ConnectionType newConnectionType)
void onNetworkConnect(NetworkChangeDetector.NetworkInformation networkInfo)
void onNetworkDisconnect(long networkHandle)
void onNetworkPreference(java.util.List<NetworkChangeDetector.ConnectionType> types, int preference)
note: |types| is a list of ConnectionTypes, so that all cellular types can be modified in one call.
7.0.0