Language

WifiSleepPolicy Enum

Definition

Enumerates values returned by several types.

public enum WifiSleepPolicy
type WifiSleepPolicy = 
Inheritance
WifiSleepPolicy

Fields

Name Value Description
Default 0

This value corresponds to the Android Settings.System.WIFI_SLEEP_POLICY_DEFAULT field, deprecated in API level 17. The global equivalent is GlobalWifiSleepPolicy.Default. On Android 11 and later, the global Wi-Fi sleep policy is no longer used by the platform.

Android reference for android.provider.Settings.System.WIFI_SLEEP_POLICY_DEFAULT.

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.

NeverWhilePlugged 1

This value corresponds to the Android Settings.System.WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED field, deprecated in API level 17. The global equivalent is GlobalWifiSleepPolicy.NeverWhilePlugged. On Android 11 and later, the global Wi-Fi sleep policy is no longer used by the platform.

Android reference for android.provider.Settings.System.WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED.

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.

Never 2

This value corresponds to the Android Settings.System.WIFI_SLEEP_POLICY_NEVER field, deprecated in API level 17. The global equivalent is GlobalWifiSleepPolicy.Never. On Android 11 and later, the global Wi-Fi sleep policy is no longer used by the platform.

Android reference for android.provider.Settings.System.WIFI_SLEEP_POLICY_NEVER.

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.

Remarks

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