Android
android.net
public static final enum

android.net.NetworkConnectivityListener.State

java.lang.Object
java.lang.Enum<E extends java.lang.Enum<E>> Serializable Comparable<T>
android.net.NetworkConnectivityListener.State

Summary

Enum Values

NetworkConnectivityListener.State  CONNECTED  This state is returned if there is connectivity to any network  
NetworkConnectivityListener.State  NOT_CONNECTED  This state is returned if there is no connectivity to any network. 
NetworkConnectivityListener.State  UNKNOWN   

Public Methods

      static    NetworkConnectivityListener.State  valueOf(String name)
    final  static    State[]  values()
Methods inherited from class java.lang.Enum
Methods inherited from class java.lang.Object
Methods inherited from interface java.lang.Comparable

Details

Enum Values

public static final NetworkConnectivityListener.State CONNECTED

This state is returned if there is connectivity to any network

public static final NetworkConnectivityListener.State NOT_CONNECTED

This state is returned if there is no connectivity to any network. This is set to true under two circumstances:
  • When connectivity is lost to one network, and there is no other available network to attempt to switch to.
  • When connectivity is lost to one network, and the attempt to switch to another network fails.

public static final NetworkConnectivityListener.State UNKNOWN

Public Methods

public static NetworkConnectivityListener.State valueOf(String name)

public static final State[] values()

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56