Methods Summary |
---|
public void | captivePortalCheckCompleted(boolean isCaptive)Captive portal check has completed
|
public void | defaultRouteSet(boolean enabled)Set a flag indicating default route is set for the network
|
public LinkProperties | getLinkProperties()Return the LinkProperties for the connection.
|
public LinkQualityInfo | getLinkQualityInfo()Get interesting information about this network link
|
public Network | getNetwork()
|
public NetworkCapabilities | getNetworkCapabilities()
|
public NetworkInfo | getNetworkInfo()Fetch NetworkInfo for the network
|
public java.lang.String | getNetworkInterfaceName()
|
public java.lang.String | getTcpBufferSizesPropName()Return the system properties name associated with the tcp buffer sizes
for this network.
|
public boolean | isAvailable()Returns an indication of whether this network is available for
connections. A value of {@code false} means that some quasi-permanent
condition prevents connectivity to this network.
NOTE that this is broken on multi-connection devices. Should be fixed in J release
TODO - fix on multi-pdp devices
|
public boolean | isDefaultRouteSet()Check if default route is set
|
public boolean | isPrivateDnsRouteSet()Check if private DNS route is set for the network
|
public boolean | isTeardownRequested()Check if tear down was requested
|
public void | privateDnsRouteSet(boolean enabled)Set a flag indicating private DNS route is set
|
public boolean | reconnect()Reenable connectivity to a network after a {@link #teardown()}.
|
public void | setDependencyMet(boolean met)An external dependency has been met/unmet
|
public void | setNetId(int netId)
|
public void | setPolicyDataEnable(boolean enabled)Policy control of data connection through this network, typically not
persisted internally. Usually used when {@link NetworkPolicy#limitBytes}
is passed.
|
public boolean | setRadio(boolean turnOn)Turn the wireless radio off for a network.
|
public void | setTeardownRequested(boolean isRequested)Indicate tear down requested from connectivity
|
public void | setUserDataEnable(boolean enabled)User control of data connection through this network, typically persisted
internally.
|
public void | startMonitoring(android.content.Context context, android.os.Handler target)Begin monitoring data connectivity.
This is the first method called when this interface is used.
|
public void | startSampling(SamplingDataTracker.SamplingSnapshot s)
|
public void | stopSampling(SamplingDataTracker.SamplingSnapshot s)
|
public void | supplyMessenger(android.os.Messenger messenger)
|
public boolean | teardown()Disable connectivity to a network
|