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:
- NoType:android/Manifest$permission;Href=../../../../reference/android/Manifest.permission.html#ACCESS_WIFI_STATE
- NoType:android/Manifest$permission;Href=../../../../reference/android/Manifest.permission.html#CHANGE_WIFI_STATE
- NoType:android/Manifest$permission;Href=../../../../reference/android/Manifest.permission.html#CHANGE_WIFI_MULTICAST_STATE
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
| Type | Reason |
|---|---|
| AuthAlgorithmType | Enumerates values returned by several types. |
| GroupCipherType | Enumerates values returned by several types. |
| KeyManagementType | Enumerates values returned by several types. |
| PairwiseCipherType | Enumerates values returned by several types. |
| ProtocolType | Enumerates values returned by several types. |
| ScanResult | Describes information about a detected access point. |
| ScanResult+InterfaceConsts | |
| SupplicantState | From defs.h in wpa_supplicant. |
| InterfaceConsts | |
| WifiConfiguration | A class representing a configured Wi-Fi network, including the security configuration. |
| AuthAlgorithm | Recognized IEEE 802.11 authentication algorithms. |
| GroupCipher | Recognized group ciphers. |
| InterfaceConsts | |
| KeyMgmt | Recognized key management schemes. |
| PairwiseCipher | Recognized pairwise ciphers for WPA. |
| Protocol | Recognized security protocols. |
| Status | Possible status of a network configuration. |
| WifiEapMethod | Enumerates values returned by several types. |
| WifiEnterpriseConfig | Enterprise configuration details for Wi-Fi. |
| Eap | The Extensible Authentication Protocol method used |
| InterfaceConsts | |
| Phase2 | The inner authentication method used |
| WifiInfo | Describes the state of any Wifi connection that is active or is in the process of being set up. |
| InterfaceConsts | |
| WifiManager | This class provides the primary API for managing all aspects of Wi-Fi connectivity. |
| MulticastLock | Allows an application to receive Wifi Multicast packets. |
| WifiLock | Allows an application to keep the Wi-Fi radio awake. |
| WpsCallback | |
| WifiPhase2Method | Enumerates values returned by several types. |
| WifiStatus | Enumerates values returned by several types. |
| WpsFailureReason | Enumerates values returned by several methods of WpsFailureReason. |
| WpsInfo | A class representing Wi-Fi Protected Setup
See Also |
| InterfaceConsts |

