Example usage for Java android.net NetworkInfo fields, constructors, methods, implement or subclass
The text is from its open source code.
DetailedState | getDetailedState() Reports the current fine-grained state of the network. |
String | getExtraInfo() Report the extra information about the network state, if any was provided by the lower networking layers. |
String | getReason() Report the reason an attempt to establish connectivity failed, if one is available. |
State | getState() Reports the current coarse-grained state of the network. |
int | getSubtype() Return a network-type-specific integer describing the subtype of the network. |
String | getSubtypeName() Return a human-readable name describing the subtype of the network. |
int | getType() Reports the type of network to which the info in this NetworkInfo pertains. |
String | getTypeName() Return a human-readable name describe the type of the network, for example "WIFI" or "MOBILE". |
boolean | isAvailable() Indicates whether network connectivity is possible. |
boolean | isConnected() Indicates whether network connectivity exists and it is possible to establish connections and pass data. |
boolean | isConnectedOrConnecting() Indicates whether network connectivity exists or is in the process of being established. |
boolean | isFailover() 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. |
boolean | isRoaming() Indicates whether the device is currently roaming on this network. |
String | toString() |