Package tvi.webrtc
Class NetworkChangeDetector.Observer
- java.lang.Object
-
- tvi.webrtc.NetworkChangeDetector.Observer
-
- Enclosing interface:
- NetworkChangeDetector
public abstract static class NetworkChangeDetector.Observer extends java.lang.Object
Observer interface by which observer is notified of network changes.
-
-
Constructor Summary
Constructors Constructor Description Observer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFieldTrialsString()
abstract void
onConnectionTypeChanged(NetworkChangeDetector.ConnectionType newConnectionType)
Called when default network changes.abstract void
onNetworkConnect(NetworkChangeDetector.NetworkInformation networkInfo)
abstract void
onNetworkDisconnect(long networkHandle)
abstract void
onNetworkPreference(java.util.List<NetworkChangeDetector.ConnectionType> types, int preference)
Called when network preference change for a (list of) connection type(s).
-
-
-
Method Detail
-
onConnectionTypeChanged
public abstract void onConnectionTypeChanged(NetworkChangeDetector.ConnectionType newConnectionType)
Called when default network changes.
-
onNetworkConnect
public abstract void onNetworkConnect(NetworkChangeDetector.NetworkInformation networkInfo)
-
onNetworkDisconnect
public abstract void onNetworkDisconnect(long networkHandle)
-
onNetworkPreference
public abstract void onNetworkPreference(java.util.List<NetworkChangeDetector.ConnectionType> types, int preference)
Called when network preference change for a (list of) connection type(s). (e.g WIFI) is `NOT_PREFERRED` or `NEUTRAL`.note: `types` is a list of ConnectionTypes, so that all cellular types can be modified in one call.
-
getFieldTrialsString
public java.lang.String getFieldTrialsString()
-
-