| java.lang.Object | |
| ↳ | com.datalogic.device.input.InputManager |
Provides access to scan-code trigger events from the device.
Supported only on devices running Android 15 or later.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| InputManager.InputTriggerEventListener | Listener for scancode trigger events. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an input manager.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Registers a listener to receive events for the specified scancodes.
| |||||||||||
Unregisters a listener from receiving scancode events.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates an input manager.
| if the input manager cannot be created |
Registers a listener to receive events for the specified scancodes.
Only trigger scancodes are supported. Unsupported scancodes in the list are ignored. The supported trigger scancodes are:
| listener | the InputManager.InputTriggerEventListener to notify when a
supported scancode event occurs |
|---|---|
| scanCodes | the scancodes for which the listener should receive events |
true if the listener was successfully registered;
false otherwise
Unregisters a listener from receiving scancode events.
| listener | the InputManager.InputTriggerEventListener to unregister |
|---|
true if the listener was successfully unregistered;
false otherwise