public class NetworkMonitorAutoDetect
extends android.content.BroadcastReceiver
Modifier and Type | Class and Description |
---|---|
static class |
NetworkMonitorAutoDetect.ConnectionType |
static class |
NetworkMonitorAutoDetect.IPAddress |
static class |
NetworkMonitorAutoDetect.NetworkInformation
Java version of NetworkMonitor.NetworkInformation
|
static interface |
NetworkMonitorAutoDetect.Observer
Observer interface by which observer is notified of network changes.
|
Constructor and Description |
---|
NetworkMonitorAutoDetect(NetworkMonitorAutoDetect.Observer observer,
android.content.Context context)
Constructs a NetworkMonitorAutoDetect.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
static NetworkMonitorAutoDetect.ConnectionType |
getConnectionType(tvi.webrtc.NetworkMonitorAutoDetect.NetworkState networkState) |
tvi.webrtc.NetworkMonitorAutoDetect.NetworkState |
getCurrentNetworkState() |
long |
getDefaultNetId()
Returns NetID of device's current default connected network used for
communication.
|
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
boolean |
supportNetworkCallback() |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public NetworkMonitorAutoDetect(NetworkMonitorAutoDetect.Observer observer, android.content.Context context)
public boolean supportNetworkCallback()
public void destroy()
public tvi.webrtc.NetworkMonitorAutoDetect.NetworkState getCurrentNetworkState()
public long getDefaultNetId()
public static NetworkMonitorAutoDetect.ConnectionType getConnectionType(tvi.webrtc.NetworkMonitorAutoDetect.NetworkState networkState)
public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
6.0.0