Build 1.0_r1(from source)

android.net
Enum NetworkInfo.DetailedState

java.lang.Object
  extended by java.lang.Enum<NetworkInfo.DetailedState>
      extended by android.net.NetworkInfo.DetailedState
All Implemented Interfaces:
Serializable, Comparable<NetworkInfo.DetailedState>
Enclosing class:
NetworkInfo

public static enum NetworkInfo.DetailedState
extends Enum<NetworkInfo.DetailedState>

The fine-grained state of a network connection. This level of detail is probably of interest to few applications. Most should use State instead.


Enum Constant Summary
AUTHENTICATING
          Network link established, performing authentication.
CONNECTED
          IP traffic should be available.
CONNECTING
          Currently setting up data connection.
DISCONNECTED
          IP traffic not available.
DISCONNECTING
          Currently tearing down data connection.
FAILED
          Attempt to connect failed.
IDLE
          Ready to start data connection setup.
OBTAINING_IPADDR
          Awaiting response from DHCP server in order to assign IP address information.
SCANNING
          Searching for an available access point.
SUSPENDED
          IP traffic is suspended
 
Method Summary
static NetworkInfo.DetailedState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NetworkInfo.DetailedState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IDLE

public static final NetworkInfo.DetailedState IDLE
Ready to start data connection setup.


SCANNING

public static final NetworkInfo.DetailedState SCANNING
Searching for an available access point.


CONNECTING

public static final NetworkInfo.DetailedState CONNECTING
Currently setting up data connection.


AUTHENTICATING

public static final NetworkInfo.DetailedState AUTHENTICATING
Network link established, performing authentication.


OBTAINING_IPADDR

public static final NetworkInfo.DetailedState OBTAINING_IPADDR
Awaiting response from DHCP server in order to assign IP address information.


CONNECTED

public static final NetworkInfo.DetailedState CONNECTED
IP traffic should be available.


SUSPENDED

public static final NetworkInfo.DetailedState SUSPENDED
IP traffic is suspended


DISCONNECTING

public static final NetworkInfo.DetailedState DISCONNECTING
Currently tearing down data connection.


DISCONNECTED

public static final NetworkInfo.DetailedState DISCONNECTED
IP traffic not available.


FAILED

public static final NetworkInfo.DetailedState FAILED
Attempt to connect failed.

Method Detail

values

public static NetworkInfo.DetailedState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NetworkInfo.DetailedState c : NetworkInfo.DetailedState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NetworkInfo.DetailedState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

Build 1.0_r1(from source)

Please submit a feedback, bug or feature