Java android.net.wifi WifiManager fields, constructors, methods, implement or subclass

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

Introduction

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

The text is from its open source code.

Field

StringWIFI_STATE_CHANGED_ACTION
Broadcast intent action indicating that Wi-Fi has been enabled, disabled, enabling, disabling, or unknown.
StringEXTRA_WIFI_STATE
The lookup key for an int that indicates whether Wi-Fi is enabled, disabled, enabling, disabling, or unknown.
intWIFI_STATE_DISABLING
Wi-Fi is currently being disabled.
intWIFI_STATE_DISABLED
Wi-Fi is disabled.
intWIFI_STATE_ENABLING
Wi-Fi is currently being enabled.
intWIFI_STATE_ENABLED
Wi-Fi is enabled.
intWIFI_STATE_UNKNOWN
Wi-Fi is in an unknown state.
StringSUPPLICANT_CONNECTION_CHANGE_ACTION
Broadcast intent action indicating that a connection to the supplicant has been established (and it is now possible to perform Wi-Fi operations) or the connection to the supplicant has been lost.
StringEXTRA_SUPPLICANT_CONNECTED
The lookup key for a boolean that indicates whether a connection to the supplicant daemon has been gained or lost.
StringNETWORK_STATE_CHANGED_ACTION
Broadcast intent action indicating that the state of Wi-Fi connectivity has changed.
StringEXTRA_NETWORK_INFO
The lookup key for a android.net.NetworkInfo object associated with the Wi-Fi network.
StringEXTRA_WIFI_INFO
The lookup key for a android.net.wifi.WifiInfo object giving the information about the access point to which we are connected.
StringSUPPLICANT_STATE_CHANGED_ACTION
Broadcast intent action indicating that the state of establishing a connection to an access point has changed.One extra provides the new SupplicantState .
StringSCAN_RESULTS_AVAILABLE_ACTION
An access point scan has completed, and results are available.
StringRSSI_CHANGED_ACTION
The RSSI (signal strength) has changed.
StringEXTRA_NEW_RSSI
The lookup key for an int giving the new RSSI in dBm.
StringACTION_PICK_WIFI_NETWORK
Activity Action: Pick a Wi-Fi network to connect to.
intWIFI_MODE_FULL
In this Wi-Fi lock mode, Wi-Fi will be kept active, and will behave normally, i.e., it will attempt to automatically establish a connection to a remembered access point that is within range, and will do periodic scans if there are remembered access points but none are in range.
intWIFI_MODE_SCAN_ONLY
In this Wi-Fi lock mode, Wi-Fi will be kept active, but the only operation that will be supported is initiation of scans, and the subsequent reporting of scan results.
intWIFI_MODE_FULL_HIGH_PERF
In this Wi-Fi lock mode, Wi-Fi will be kept active as in mode #WIFI_MODE_FULL but it operates at high performance with minimum packet loss and low packet latency even when the device screen is off.

Method

intaddNetwork(WifiConfiguration config)
Add a new network description to the set of configured networks.
intcalculateSignalLevel(int rssi, int numLevels)
Calculates the level of the signal.
MulticastLockcreateMulticastLock(String tag)
Create a new MulticastLock
WifiLockcreateWifiLock(int lockType, String tag)
Creates a new WifiLock.
WifiLockcreateWifiLock(String tag)
Creates a new WifiLock.
booleandisableNetwork(int netId)
Disable a configured network.
booleandisconnect()
Disassociate from the currently active access point.
booleanenableNetwork(int netId, boolean attemptConnect)
Allow a previously configured network to be associated with.
ClassgetClass()
Returns the runtime class of this Object .
ListgetConfiguredNetworks()
Return a list of all the networks configured for the current foreground user.
WifiInfogetConnectionInfo()
Return dynamic information about the current Wi-Fi connection, if any is active.
DhcpInfogetDhcpInfo()
Return the DHCP-assigned addresses from the last successful DHCP request, if any.
ListgetScanResults()
Return the results of the latest access point scan.
intgetWifiState()
Gets the Wi-Fi enabled state.
booleanisWifiEnabled()
Return whether Wi-Fi is enabled or disabled.
booleanreconnect()
Reconnect to the currently active access point, if we are currently disconnected.
booleanremoveNetwork(int netId)
Remove the specified network from the list of configured networks.
booleansaveConfiguration()
Tell the device to persist the current list of configured networks.
booleansetWifiEnabled(boolean enabled)
Enable or disable Wi-Fi.
booleanstartScan()
Request a scan for access points.
StringtoString()
Returns a string representation of the object.
intupdateNetwork(WifiConfiguration config)
Update the network description of an existing configured network.