to top
Datalogic APIs
public final enum

KeyboardPistolTriggerInCradlePolicy

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.datalogic.device.configuration.KeyboardPistolTriggerInCradlePolicy

Class Overview

The KeyboardPistolTriggerInCradlePolicy enumeration defines the behavior of the device when the pistol trigger is long pressed while the device is in a cradle.

Only support on the following products:

  • Joya Smart

Summary

Enum Values
KeyboardPistolTriggerInCradlePolicy  DISABLED  When long pressing the pistol trigger in cradle, the device will do nothing. 
KeyboardPistolTriggerInCradlePolicy  POWER_MENU  When long pressing the pistol trigger in cradle, the device will show the power menu. 
KeyboardPistolTriggerInCradlePolicy  POWER_OFF  When long pressing the pistol trigger in cradle, the device will power off. 
KeyboardPistolTriggerInCradlePolicy  REBOOT  When long pressing the pistol trigger in cradle, the device will reboot. 
Public Methods
static KeyboardPistolTriggerInCradlePolicy fromInt(int n)
Returns the KeyboardPistolTriggerInCradlePolicy corresponding to the given integer value.
int toInt()
Returns the integer value associated with this behavior.
static KeyboardPistolTriggerInCradlePolicy valueOf(String name)
final static KeyboardPistolTriggerInCradlePolicy[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final KeyboardPistolTriggerInCradlePolicy DISABLED

Added in revision 51

When long pressing the pistol trigger in cradle, the device will do nothing.

public static final KeyboardPistolTriggerInCradlePolicy POWER_MENU

Added in revision 51

When long pressing the pistol trigger in cradle, the device will show the power menu.

public static final KeyboardPistolTriggerInCradlePolicy POWER_OFF

Added in revision 51

When long pressing the pistol trigger in cradle, the device will power off.

public static final KeyboardPistolTriggerInCradlePolicy REBOOT

Added in revision 51

When long pressing the pistol trigger in cradle, the device will reboot.

Public Methods

public static KeyboardPistolTriggerInCradlePolicy fromInt (int n)

Added in revision 51

Returns the KeyboardPistolTriggerInCradlePolicy corresponding to the given integer value. If the value does not match any behavior, it defaults to DISABLED.

Parameters
n the integer value representing a behavior
Returns

public int toInt ()

Added in revision 51

Returns the integer value associated with this behavior.

Returns
  • the integer value representing the behavior

public static KeyboardPistolTriggerInCradlePolicy valueOf (String name)

Added in revision 51

public static final KeyboardPistolTriggerInCradlePolicy[] values ()

Added in revision 51