to top
Datalogic APIs
public final enum

DLKeyEvent

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.datalogic.device.input.DLKeyEvent

Class Overview

DLKeyEvent defines the custom Datalogic's keycodes.

Summary

Enum Values
DLKeyEvent  KEYCODE_BARCODE  Datalogic Keycode to trigger a scanning session with the barcode scanner. 
DLKeyEvent  KEYCODE_BATTERY_SWAP  Datalogic Keycode to trigger a battery swap request. 
DLKeyEvent  KEYCODE_OCR_DECODE  Datalogic Keycode to trigger a Snap OCR scanning session with the barcode scanner. 
DLKeyEvent  KEYCODE_PUSH_TO_TALK  Datalogic Keycode to trigger a Push-To-Talk (PTT) session. 
DLKeyEvent  KEYCODE_SCANNER_INPUT_SWITCH  Datalogic Keycode to switch the scanner input from camera to scan engine. 
DLKeyEvent  KEYCODE_UNKNOWN  Undefined keycode  
Public Methods
static DLKeyEvent[] getAvailableDLKeyEvents()
Retrieves the array of all available DLKeyEvent.
static DLKeyEvent getKeyCodeType(int value)
Retrieves the corresponding DLKeyEvent value, from a valid integer.
int getKeyCodeValue()
Converts a DLKeyEvent to its integer corresponding value.
static DLKeyEvent valueOf(String name)
final static DLKeyEvent[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final DLKeyEvent KEYCODE_BARCODE

Added in revision 36

Datalogic Keycode to trigger a scanning session with the barcode scanner. This value is determined based on the device platform.

public static final DLKeyEvent KEYCODE_BATTERY_SWAP

Added in revision 36

Datalogic Keycode to trigger a battery swap request.

public static final DLKeyEvent KEYCODE_OCR_DECODE

Added in revision 42

Datalogic Keycode to trigger a Snap OCR scanning session with the barcode scanner.

public static final DLKeyEvent KEYCODE_PUSH_TO_TALK

Added in revision 36

Datalogic Keycode to trigger a Push-To-Talk (PTT) session.

public static final DLKeyEvent KEYCODE_SCANNER_INPUT_SWITCH

Added in revision 36

Datalogic Keycode to switch the scanner input from camera to scan engine.

public static final DLKeyEvent KEYCODE_UNKNOWN

Added in revision 36

Undefined keycode

Public Methods

public static DLKeyEvent[] getAvailableDLKeyEvents ()

Added in revision 36

Retrieves the array of all available DLKeyEvent.

Returns
  • an array of available DLKeyEvent.

public static DLKeyEvent getKeyCodeType (int value)

Added in revision 36

Retrieves the corresponding DLKeyEvent value, from a valid integer.

Parameters
value : KeyCode value.
Returns
  • DLKeyEvent : the corresponding DLKeyEvent.

public int getKeyCodeValue ()

Added in revision 36

Converts a DLKeyEvent to its integer corresponding value.

Returns
  • int : value of the corresponding DLKeyEvent.

public static DLKeyEvent valueOf (String name)

Added in revision 36

public static final DLKeyEvent[] values ()

Added in revision 36