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's Android keycode meant to represent the scan request button. 
DLKeyEvent  KEYCODE_BATTERY_SWAP  Datalogic's android keycode meant to represent the battery swap request button. 
DLKeyEvent  KEYCODE_PUSH_TO_TALK  Datalogic's android keycode meant to represent the PTT button. 
DLKeyEvent  KEYCODE_SCANNER_INPUT_SWITCH  Datalogic's android keycode meant to represent the request to switch the scanner input from camera to scan engine. 
DLKeyEvent  KEYCODE_UNKNOWN  Datalogic's Android keycode meant to represent 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's Android keycode meant to represent the scan request button.

public static final DLKeyEvent KEYCODE_BATTERY_SWAP

Added in revision 36

Datalogic's android keycode meant to represent the battery swap request button.

public static final DLKeyEvent KEYCODE_PUSH_TO_TALK

Added in revision 36

Datalogic's android keycode meant to represent the PTT button.

public static final DLKeyEvent KEYCODE_SCANNER_INPUT_SWITCH

Added in revision 36

Datalogic's android keycode meant to represent the request to switch the scanner input from camera to scan engine.

public static final DLKeyEvent KEYCODE_UNKNOWN

Added in revision 36

Datalogic's Android keycode meant to represent 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