Partager via


WifiManager.WifiState Property

Definition

Gets the Wi-Fi enabled state.

public virtual Android.Net.WifiState WifiState { [Android.Runtime.Register("getWifiState", "()I", "GetGetWifiStateHandler")] get; }
[<get: Android.Runtime.Register("getWifiState", "()I", "GetGetWifiStateHandler")>]
member this.WifiState : Android.Net.WifiState

Property Value

One of #WIFI_STATE_DISABLED, #WIFI_STATE_DISABLING, #WIFI_STATE_ENABLED, #WIFI_STATE_ENABLING, #WIFI_STATE_UNKNOWN

Attributes

Remarks

Gets the Wi-Fi enabled state.

Java documentation for android.net.wifi.WifiManager.getWifiState().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also