Partager via


WakeLockFlags Enum

Definition

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
ThermalStatusNone 0
LocationModeGpsDisabledWhenScreenOff 1
Partial 1

Wake lock level: Ensures that the CPU is running; the screen and keyboard backlight will be allowed to go off.

ReleaseFlagWaitForNoProximity 1
ThermalStatusLight 1
LocationModeAllDisabledWhenScreenOff 2
ThermalStatusModerate 2
LocationModeForegroundOnly 3
ThermalStatusSevere 3
LocationModeThrottleRequestsWhenScreenOff 4
ThermalStatusCritical 4
ThermalStatusEmergency 5
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
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
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.

Applies to