FileDocCategorySizeDatePackage
INetworkManagementEventObserver.javaAPI DocAndroid 5.1 API16491Sat Mar 14 05:48:02 GMT 2015android.net

INetworkManagementEventObserver

public interface INetworkManagementEventObserver implements android.os.IInterface
Callback class for receiving events from an INetworkManagementService
hide

Fields Summary
Constructors Summary
Methods Summary
public voidaddressRemoved(java.lang.String iface, android.net.LinkAddress address)
An interface address has been removed.

param
iface The interface.
param
address The address.

public voidaddressUpdated(java.lang.String iface, android.net.LinkAddress address)
An interface address has been added or updated.

param
iface The interface.
param
address The address.

public voidinterfaceAdded(java.lang.String iface)
An interface has been added to the system

param
iface The interface.

public voidinterfaceClassDataActivityChanged(java.lang.String label, boolean active, long tsNanos)
Interface data activity status is changed.

param
iface The interface.
param
active True if the interface is actively transmitting data, false if it is idle.
param
tsNanos Elapsed realtime in nanos when the state of the network interface changed.

public voidinterfaceDnsServerInfo(java.lang.String iface, long lifetime, java.lang.String[] servers)
Information about available DNS servers has been received.

param
iface The interface on which the information was received.
param
lifetime The time in seconds for which the DNS servers may be used.
param
servers The IP addresses of the DNS servers.

public voidinterfaceLinkStateChanged(java.lang.String iface, boolean up)
Interface physical-layer link state has changed. For Ethernet, this method is invoked when the cable is plugged in or unplugged.

param
iface The interface.
param
up True if the physical link-layer connection signal is valid.

public voidinterfaceRemoved(java.lang.String iface)
An interface has been removed from the system

param
iface The interface.

public voidinterfaceStatusChanged(java.lang.String iface, boolean up)
Interface configuration status has changed.

param
iface The interface.
param
up True if the interface has been enabled.

public voidlimitReached(java.lang.String limitName, java.lang.String iface)
A networking quota limit has been reached. The quota might not be specific to an interface.

param
limitName The name of the limit that triggered.
param
iface The interface on which the limit was detected.

public voidrouteRemoved(android.net.RouteInfo route)
A route has been removed.

public voidrouteUpdated(android.net.RouteInfo route)
A route has been added or updated.