java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | com.datalogic.device.configuration.PocketModePolicy |
Enum Values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PocketModePolicy | DEVICE_LOCK | When pocket-mode is triggered by the proximity sensor the display will enter suspend state, much like when the power button is pressed. | |||||||||
PocketModePolicy | DISPLAY_OFF | When pocket-mode is triggered by the proximity sensor, the display will be turned off, leaving the device in an unlocked state. | |||||||||
PocketModePolicy | PROGRESSIVE_DEVICE_LOCK | When pocket-mode is triggered by the proximity sensor the display will be initially turned
off, as for the DISPLAY_OFF policy. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the corresponding PocketModePolicy value, from a valid integer.
| |||||||||||
Retrieves the corresponding int value.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Enum
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
|
When pocket-mode is triggered by the proximity sensor the display will enter suspend state, much like when the power button is pressed. The device will be in locked state. When the proximity sensor no longer detects an obstruction, the device will resume from suspend state and will be locked or unlocked according to the screen lock configuration.
When pocket-mode is triggered by the proximity sensor, the display will be turned off, leaving the device in an unlocked state. When the proximity sensor no longer detects an obstruction, the display will be turned on and the device remaining in its unlocked state.
When pocket-mode is triggered by the proximity sensor the display will be initially turned
off, as for the DISPLAY_OFF
policy. Then, after a period defined by
POWER_POCKET_MODE_LOCK_TIMEOUT
without any new sensor change,
it will enter the suspend state, like with the DEVICE_LOCK
policy.
When the proximity sensor no longer detects an obstruction, the display will turn on and
the device will remain in its unlocked state if the lock timeout has not elapsed; otherwise,
the device will resume from suspend state and will be locked or unlocked according to
the screen lock configuration.
Retrieves the corresponding PocketModePolicy value, from a valid integer.
id | int |
---|
DISPLAY_OFF
if not a valid integer is passed.