Compartilhar via


Settings.Global.WifiSleepPolicy Field

Definition

The policy for deciding when Wi-Fi should go to sleep (which will in turn switch to using the mobile data as an Internet connection).

[Android.Runtime.Register("WIFI_SLEEP_POLICY")]
public const string WifiSleepPolicy;
[<Android.Runtime.Register("WIFI_SLEEP_POLICY")>]
val mutable WifiSleepPolicy : string

Field Value

Attributes

Remarks

The policy for deciding when Wi-Fi should go to sleep (which will in turn switch to using the mobile data as an Internet connection).

Set to one of #WIFI_SLEEP_POLICY_DEFAULT, #WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED, or #WIFI_SLEEP_POLICY_NEVER.

This member is deprecated. This is no longer used or set by the platform.

Java documentation for android.provider.Settings.Global.WIFI_SLEEP_POLICY.

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