public class ScanEvent extends Event<ScanHandler>
Event.Type<H>| Modifier and Type | Field and Description |
|---|---|
static int |
BATTERY_ERROR
The event type for a scanner low battery event.
|
java.lang.String |
data
The data resulting from the scan when type is
SCANNED. |
static int |
SCANNED
The event type for a scanner scanning event.
|
static int |
TRIGGERED
The event type for a scanner triggered: A scan attempt was initiated - hard or soft trigger.
|
| Constructor and Description |
|---|
ScanEvent() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(ScanHandler listener) |
void |
update(int type)
Updates a scan event with the given type.
|
clearQueue, getNextAvailableEventId, isAvailable, toString, touchpublic static final int SCANNED
public static final int BATTERY_ERROR
public static final int TRIGGERED
public java.lang.String data
SCANNED.public void update(int type)
public void dispatch(ScanHandler listener)
dispatch in class Event<ScanHandler>