WakeLockFlags 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.
Defines flags for wake lock .
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum WakeLockFlags
[<System.Flags>]
type WakeLockFlags =
- Inheritance
-
WakeLockFlags
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| LocationModeNoChange | 0 | Either the location providers shouldn't be affected by battery saver, or battery saver is off. |
| ThermalStatusNone | 0 | Thermal status code: Not under throttling. |
| LocationModeGpsDisabledWhenScreenOff | 1 | In this mode, the GPS based location provider should be disabled when battery saver is on and the device is non-interactive. |
| Partial | 1 | Wake lock level: Ensures that the CPU is running; the screen and keyboard backlight will be allowed to go off. |
| ReleaseFlagWaitForNoProximity | 1 | Flag for WakeLock.release(int) : Defer releasing a PROXIMITY_SCREEN_OFF_WAKE_LOCK wake lock until the proximity sensor indicates that an object is not in close proximity. |
| ThermalStatusLight | 1 | Thermal status code: Light throttling where UX is not impacted. |
| LocationModeAllDisabledWhenScreenOff | 2 | All location providers should be disabled when battery saver is on and the device is non-interactive. |
| ThermalStatusModerate | 2 | Thermal status code: Moderate throttling where UX is not largely impacted. |
| LocationModeForegroundOnly | 3 | In this mode, all the location providers will be kept available, but location fixes should only be provided to foreground apps. |
| ThermalStatusSevere | 3 | Thermal status code: Severe throttling where UX is largely impacted. |
| LocationModeThrottleRequestsWhenScreenOff | 4 | In this mode, location will not be turned off, but LocationManager will throttle all requests to providers when the device is non-interactive. |
| ThermalStatusCritical | 4 | Thermal status code: Platform has done everything to reduce power. |
| ThermalStatusEmergency | 5 | Thermal status code: Key components in platform are shutting down due to thermal condition. Device functionalities will be limited. |
| ScreenDim | 6 | Wake lock level: Ensures that the screen is on (but may be dimmed); the keyboard backlight will be allowed to go off. |
| ThermalStatusShutdown | 6 | Thermal status code: Need shutdown immediately. |
| ScreenBright | 10 | Wake lock level: Ensures that the screen is on at full brightness; the keyboard backlight will be allowed to go off. |
| Full | 26 | Wake lock level: Ensures that the screen and keyboard backlight are on at full brightness. |
| ProximityScreenOff | 32 | Wake lock level: Turns the screen off when the proximity sensor activates. If the proximity sensor detects that an object is nearby, the screen turns off immediately. |
| AcquireCausesWakeup | 268435456 | Wake lock flag: Turn the screen on when the wake lock is acquired. |
| OnAfterRelease | 536870912 | Wake lock flag: When this wake lock is released, poke the user activity timer so the screen stays on for a little longer. |
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.
Java documentation for android.os.PowerManager.