java.lang.Object | |
↳ | android.net.wifi.WifiInfo |
Describes the state of any Wifi connection that is active or is in the process of being set up.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | LINK_SPEED_UNITS | Link speed in Mbps |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the basic service set identifier (BSSID) of the current access point.
| |||||||||||
Map a supplicant state into a fine-grained network connectivity state.
| |||||||||||
Returns the current link speed in
LINK_SPEED_UNITS . | |||||||||||
Each configured network has a unique small integer ID, used to identify
the network when performing operations on the supplicant.
| |||||||||||
Returns the received signal strength indicator of the current 802.11
network.
| |||||||||||
Returns the service set identifier (SSID) of the current 802.11 network.
| |||||||||||
Return the detailed state of the supplicant's negotiation with an
access point, in the form of a
SupplicantState object. | |||||||||||
Returns a string containing a concise, human-readable description of this
object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Link speed in Mbps
Return the basic service set identifier (BSSID) of the current access point.
The BSSID may be null
if there is no network currently connected.
XX:XX:XX:XX:XX:XX
Map a supplicant state into a fine-grained network connectivity state.
suppState | the supplicant state |
---|
NetworkInfo.DetailedState
true
if this network does not broadcast its SSID, so an
SSID-specific probe request must be used for scans.
Each configured network has a unique small integer ID, used to identify the network when performing operations on the supplicant. This method returns the ID for the currently connected network.
Returns the received signal strength indicator of the current 802.11 network.
This is not normalized, but should be!
Returns the service set identifier (SSID) of the current 802.11 network.
If the SSID is an ASCII string, it will be returned surrounded by double
quotation marks.Otherwise, it is returned as a string of hex digits. The
SSID may be null
if there is no network currently connected.
Return the detailed state of the supplicant's negotiation with an
access point, in the form of a SupplicantState
object.
SupplicantState
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.