Java android.net NetworkInfo fields, constructors, methods, implement or subclass

Example usage for Java android.net NetworkInfo fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.net NetworkInfo.

The text is from its open source code.

Method

DetailedStategetDetailedState()
Reports the current fine-grained state of the network.
StringgetExtraInfo()
Report the extra information about the network state, if any was provided by the lower networking layers.
StringgetReason()
Report the reason an attempt to establish connectivity failed, if one is available.
StategetState()
Reports the current coarse-grained state of the network.
intgetSubtype()
Return a network-type-specific integer describing the subtype of the network.
StringgetSubtypeName()
Return a human-readable name describing the subtype of the network.
intgetType()
Reports the type of network to which the info in this NetworkInfo pertains.
StringgetTypeName()
Return a human-readable name describe the type of the network, for example "WIFI" or "MOBILE".
booleanisAvailable()
Indicates whether network connectivity is possible.
booleanisConnected()
Indicates whether network connectivity exists and it is possible to establish connections and pass data.
booleanisConnectedOrConnecting()
Indicates whether network connectivity exists or is in the process of being established.
booleanisFailover()
Indicates whether the current attempt to connect to the network resulted from the ConnectivityManager trying to fail over to this network following a disconnect from another network.
booleanisRoaming()
Indicates whether the device is currently roaming on this network.
StringtoString()