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

AcquireCausesWakeup 268435456

Wake lock flag: Turn the screen on when the wake lock is acquired.

Full 26

Wake lock level: Ensures that the screen and keyboard backlight are on at full brightness.

LocationModeAllDisabledWhenScreenOff 2
LocationModeForegroundOnly 3
LocationModeGpsDisabledWhenScreenOff 1
LocationModeNoChange 0
LocationModeThrottleRequestsWhenScreenOff 4
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.

Partial 1

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

ProximityScreenOff 32
ReleaseFlagWaitForNoProximity 1
ScreenBright 10

Wake lock level: Ensures that the screen is on at full brightness; the keyboard backlight will be allowed to go off.

ScreenDim 6

Wake lock level: Ensures that the screen is on (but may be dimmed); the keyboard backlight will be allowed to go off.

ThermalStatusCritical 4
ThermalStatusEmergency 5
ThermalStatusLight 1
ThermalStatusModerate 2
ThermalStatusNone 0
ThermalStatusSevere 3
ThermalStatusShutdown 6

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