See Also: WifiManager
public class WifiManager : Object
This class provides the primary API for managing all aspects of Wi-Fi connectivity. Get an instance of this class by calling Context.GetSystemService(String). It deals with several categories of items:
- The list of configured networks. The list can be viewed and updated, and attributes of individual entries can be modified.
- The currently active Wi-Fi network, if any. Connectivity can be established or torn down, and dynamic information about the state of the network can be queried.
- Results of access point scans, containing enough information to make decisions about what access point to connect to.
- It defines the names of various Intent actions that are broadcast upon any sort of change in Wi-Fi state.
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1
The members of Android.Net.Wifi.WifiManager are listed below.
See Also: Object
|ActionPickWifiNetwork||String. Activity Action: Pick a Wi-Fi network to connect to.|
|ActionRequestScanAlwaysAvailable||String. Activity Action: Show a system activity that allows the user to enable scans to be available even with Wi-Fi turned off.|
|ErrorAuthenticating||Int32 (1). The error code if there was a problem authenticating.|
|ExtraBssid||String. The lookup key for a String giving the BSSID of the access point to which we are connected.|
|ExtraNetworkInfo||String. The lookup key for a NetworkInfo object associated with the Wi-Fi network.|
|ExtraNewRssi||String. The lookup key for an int giving the new RSSI in dBm.|
|ExtraNewState||String. The lookup key for a SupplicantState describing the new state Retrieve with Intent.GetParcelableExtra(String).|
|ExtraPreviousWifiState||String. The previous Wi-Fi state.|
|ExtraSupplicantConnected||String. The lookup key for a boolean that indicates whether a connection to the supplicant daemon has been gained or lost.|
|ExtraSupplicantError||String. The lookup key for a SupplicantState describing the supplicant error code if any Retrieve with Intent.GetIntExtra(String,Int32).|
|ExtraWifiInfo||String. The lookup key for a WifiInfo object giving the information about the access point to which we are connected.|
|ExtraWifiState||String. The lookup key for an int that indicates whether Wi-Fi is enabled, disabled, enabling, disabling, or unknown.|
|NetworkIdsChangedAction||String. The network IDs of the configured networks could have changed.|
|NetworkStateChangedAction||String. Broadcast intent action indicating that the state of Wi-Fi connectivity has changed.|
|RssiChangedAction||String. The RSSI (signal strength) has changed.|
|ScanResultsAvailableAction||String. An access point scan has completed, and results are available from the supplicant.|
|SupplicantConnectionChangeAction||String. 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.|
|SupplicantStateChangedAction||String. Broadcast intent action indicating that the state of establishing a connection to an access point has changed.|
|WifiStateChangedAction||String. Broadcast intent action indicating that Wi-Fi has been enabled, disabled, enabling, disabling, or unknown.|
|[read-only]||ConfiguredNetworks||IList<WifiConfiguration>. Return a list of all the networks configured in the supplicant.|
|[read-only]||ConnectionInfo||WifiInfo. Return dynamic information about the current Wi-Fi connection, if any is active.|
|[read-only]||DhcpInfo||DhcpInfo. Return the DHCP-assigned addresses from the last successful DHCP request, if any.|
|[read-only]||IsScanAlwaysAvailable||Boolean. Check if scanning is always available.|
|[read-only]||IsWifiEnabled||Boolean. Return whether Wi-Fi is enabled or disabled.|
|[read-only]||ScanResults||IList<ScanResult>. Return the results of the latest access point scan.|
|[read-only]||WifiState||WifiState. Gets the Wi-Fi enabled state.|
Add a new network description to the set of configured networks.
Calculates the level of the signal.
Cancel any ongoing Wi-fi Protected Setup
Compares two signal strengths.
Create a new MulticastLock
Creates a new WifiLock.
Creates a new WifiLock.
Disable a configured network.
Disassociate from the currently active access point.
Allow a previously configured network to be associated with.
Check that the supplicant daemon is responding to requests.
Reconnect to the currently active access point, even if we are already connected.
Reconnect to the currently active access point, if we are currently disconnected.
Remove the specified network from the list of configured networks.
Tell the supplicant to persist the current list of configured networks.
Enable/Disable TDLS on a specific local route.
Similar to WifiManager.SetTdlsEnabled(InetAddress,Boolean), except this version allows you to specify remote endpoint with a MAC address.
Enable or disable Wi-Fi.
Request a scan for access points.
Start Wi-fi Protected Setup
Update the network description of an existing configured network.