public static final enum

NetworkInfo.State

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ android.net.NetworkInfo.State

Class Overview

Coarse-grained network state. This is probably what most applications should use, rather than DetailedState. The mapping between the two is as follows:

CONNECTED
Detailed stateCoarse-grained state
IDLEDISCONNECTED
SCANNINGCONNECTING
CONNECTINGCONNECTING
AUTHENTICATINGCONNECTING
CONNECTED
DISCONNECTINGDISCONNECTING
DISCONNECTEDDISCONNECTED
UNAVAILABLEDISCONNECTED
FAILEDDISCONNECTED

Summary

Public Methods
static NetworkInfo.State valueOf(String name)
final static State[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Public Methods

public static NetworkInfo.State valueOf (String name)

Since: API Level 1

public static final State[] values ()

Since: API Level 1