Android.Net.Wifi Namespace

Provides classes to manage Wi-Fi functionality on the device.

Remarks

Provides classes to manage Wi-Fi functionality on the device.

The Wi-Fi APIs provide a means by which applications can communicate with the lower-level wireless stack that provides Wi-Fi network access. Almost all information from the device supplicant is available, including the connected network's link speed, IP address, negotiation state, and more, plus information about other networks that are available. Some other API features include the ability to scan, add, save, terminate and initiate Wi-Fi connections.

Some APIs may require the following user permissions:

Note: Not all Android-powered devices provide Wi-Fi functionality. If your application uses Wi-Fi, declare so with a <uses-feature> element in the manifest file:

xml Example

<manifest ...>
    <uses-feature android:name="android.hardware.wifi" />
    ...
</manifest>

Classes

TypeReason
AuthAlgorithmTypeEnumerates values returned by several types.
GroupCipherTypeEnumerates values returned by several types.
KeyManagementTypeEnumerates values returned by several types.
PairwiseCipherTypeEnumerates values returned by several types.
ProtocolTypeEnumerates values returned by several types.
ScanResultDescribes information about a detected access point.
ScanResult+InterfaceConstsDocumentation for this section has not yet been entered.
SupplicantStateFrom defs.h in wpa_supplicant.
SupplicantState+InterfaceConstsDocumentation for this section has not yet been entered.
WifiConfigurationA class representing a configured Wi-Fi network, including the security configuration.
WifiConfiguration+AuthAlgorithmRecognized IEEE 802.11 authentication algorithms.
WifiConfiguration+GroupCipherRecognized group ciphers.
WifiConfiguration+InterfaceConstsDocumentation for this section has not yet been entered.
WifiConfiguration+KeyMgmtRecognized key management schemes.
WifiConfiguration+PairwiseCipherRecognized pairwise ciphers for WPA.
WifiConfiguration+ProtocolRecognized security protocols.
WifiConfiguration+StatusPossible status of a network configuration.
WifiEapMethodEnumerates values returned by several types.
WifiEnterpriseConfigEnterprise configuration details for Wi-Fi.
WifiEnterpriseConfig+EapThe Extensible Authentication Protocol method used
WifiEnterpriseConfig+InterfaceConstsDocumentation for this section has not yet been entered.
WifiEnterpriseConfig+Phase2The inner authentication method used
WifiInfoDescribes the state of any Wifi connection that is active or is in the process of being set up.
WifiInfo+InterfaceConstsDocumentation for this section has not yet been entered.
WifiManagerThis class provides the primary API for managing all aspects of Wi-Fi connectivity.
WifiManager+MulticastLockAllows an application to receive Wifi Multicast packets.
WifiManager+WifiLockAllows an application to keep the Wi-Fi radio awake.
WifiManager+WpsCallbackDocumentation for this section has not yet been entered.
WifiPhase2MethodEnumerates values returned by several types.
WifiStatusEnumerates values returned by several types.
WpsFailureReasonEnumerates values returned by several methods of Android.Net.Wifi.WpsFailureReason.
WpsInfoA class representing Wi-Fi Protected Setup
See Also
WpsInfo+InterfaceConstsDocumentation for this section has not yet been entered.