public class NetworkMonitorAutoDetect
extends BroadcastReceiver
限定符和类型 | 类和说明 |
---|---|
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.
|
构造器和说明 |
---|
NetworkMonitorAutoDetect(NetworkMonitorAutoDetect.Observer observer,
Context context)
Constructs a NetworkMonitorAutoDetect.
|
限定符和类型 | 方法和说明 |
---|---|
void |
destroy() |
static NetworkMonitorAutoDetect.ConnectionType |
getConnectionType(tee3.webrtc.NetworkMonitorAutoDetect.NetworkState networkState) |
tee3.webrtc.NetworkMonitorAutoDetect.NetworkState |
getCurrentNetworkState() |
long |
getDefaultNetId()
Returns NetID of device's current default connected network used for
communication.
|
void |
onReceive(Context context,
Intent intent) |
boolean |
supportNetworkCallback() |
public NetworkMonitorAutoDetect(NetworkMonitorAutoDetect.Observer observer, Context context)
public boolean supportNetworkCallback()
public void destroy()
public tee3.webrtc.NetworkMonitorAutoDetect.NetworkState getCurrentNetworkState()
public long getDefaultNetId()
public static NetworkMonitorAutoDetect.ConnectionType getConnectionType(tee3.webrtc.NetworkMonitorAutoDetect.NetworkState networkState)
public void onReceive(Context context, Intent intent)