android.net
Class NetworkInfo

java.lang.Object
  extended by android.net.NetworkInfo
All Implemented Interfaces:
Parcelable

public class NetworkInfo
extends Object
implements Parcelable


Nested Class Summary
static class NetworkInfo.DetailedState
           
static class NetworkInfo.State
           
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Method Summary
 int describeContents()
           
 NetworkInfo.DetailedState getDetailedState()
           
 String getExtraInfo()
           
 String getReason()
           
 NetworkInfo.State getState()
           
 int getSubtype()
           
 String getSubtypeName()
           
 int getType()
           
 String getTypeName()
           
 boolean isAvailable()
           
 boolean isConnected()
           
 boolean isConnectedOrConnecting()
           
 boolean isFailover()
           
 boolean isRoaming()
           
 String toString()
           
 void writeToParcel(Parcel dest, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getType

public int getType()

getSubtype

public int getSubtype()

getTypeName

public String getTypeName()

getSubtypeName

public String getSubtypeName()

isConnectedOrConnecting

public boolean isConnectedOrConnecting()

isConnected

public boolean isConnected()

isAvailable

public boolean isAvailable()

isFailover

public boolean isFailover()

isRoaming

public boolean isRoaming()

getState

public NetworkInfo.State getState()

getDetailedState

public NetworkInfo.DetailedState getDetailedState()

getReason

public String getReason()

getExtraInfo

public String getExtraInfo()

toString

public String toString()
Overrides:
toString in class Object

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface Parcelable


Copyright © 2008-2012. All Rights Reserved.