GlobalWifiSleepPolicy 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 GlobalWifiSleepPolicy
type GlobalWifiSleepPolicy =
- Inheritance
-
GlobalWifiSleepPolicy
Fields
| Name | Value | Description |
|---|---|---|
| Default | 0 | This constant was deprecated in API level 30. This is no longer used by the platform. Value for WIFI_SLEEP_POLICY to use the default Wi-Fi sleep policy, which is to sleep shortly after the turning off according to the STAY_ON_WHILE_PLUGGED_IN setting. 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 | Value for WifiSleepPolicyto use the default policy when the device is on battery, and never go to sleep when the device is plugged in. |
| Never | 2 | Value for WifiSleepPolicyto never go to sleep. |
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.