WifiSleepPolicy Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 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 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 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.