to top
Datalogic APIs
public class

KeyCodeEntry

extends Object
java.lang.Object
   ↳ com.datalogic.device.input.KeyCodeEntry

Class Overview

This class stores an Android KeyCode entry, as defined in KeyEvent

Summary

Public Constructors
KeyCodeEntry(int keyCode, int metaState)
This constructor initializes the key code and the meta state active flag.
KeyCodeEntry(int keyCode)
This constructor initializes the meta state active flag bitmask to 0.
Public Methods
int getKeyCode()
Gets the internal Android KeyCode value.
int getMetaState()
Gets the internal Android meta state value.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public KeyCodeEntry (int keyCode, int metaState)

Added in revision 1

This constructor initializes the key code and the meta state active flag.

Parameters
keyCode int it specifies the Android KeyEvent key code. Use android.view.KeyEvent keycode constant identifiers.
metaState int it specifies meta state active flag as a bitmask.

public KeyCodeEntry (int keyCode)

Added in revision 1

This constructor initializes the meta state active flag bitmask to 0.

Parameters
keyCode int it specifies the Android KeyEvent key code.

Public Methods

public int getKeyCode ()

Added in revision 1

Gets the internal Android KeyCode value.

Returns
  • the KeyCode as an integer value.

public int getMetaState ()

Added in revision 1

Gets the internal Android meta state value.

Returns
  • the meta state as an integer value.