public interface AsReaderEventListener
Modifier and Type | Method and Description |
---|---|
void |
onAccessResult(AsReader reader,
ResultCode code,
ActionState action,
java.lang.String epc,
java.lang.String data,
float rssi,
float phase,
float frequency)
Invoked when the device receives the result of executing the functions of Read Memory, Write Memory, Lock and so on.
|
void |
onActionChanged(AsReader reader,
ActionState action)
Invoked when the operational state of the Device associated with the AsReader instance changes.
|
void |
onCommandComplete(AsReader reader,
CommandType command)
Invoked when the operations such as saveParameter and defaultParameter are completed
|
void |
onExceptionOccurred(AsReader reader,
int code)
Invoked when an exception occurs during operation.
|
void |
onKeyEvent(AsReader reader,
KeyType key,
KeyState state)
Invoked when device's key is pressed or released.
|
void |
onReadBarcode(AsReader reader,
BarcodeType type,
java.lang.String codeId,
java.lang.String barcode)
Invoked when the barcode module decodes the barcode.
|
void |
onReadTag(AsReader reader,
ActionState action,
java.lang.String tag,
float rssi,
float phase,
float frequency)
Invoked when the device reads the tag while performing the Inventory function.
|
void |
onStateChanged(AsReader reader,
ConnectionState state)
Invoked when the connection state of the Device changes.
|
void onStateChanged(AsReader reader, ConnectionState state)
reader
- AsReader instance that fired the event.state
- ConnectionState enumeration indicating the connection status with the Device.void onActionChanged(AsReader reader, ActionState action)
reader
- AsReader instance that fired the event.action
- ActionState enumeration indicating the device's operational state.void onReadTag(AsReader reader, ActionState action, java.lang.String tag, float rssi, float phase, float frequency)
reader
- AsReader instance that fired the event.action
- ActionState enumeration indicating the behavior that the Device accessed the Tag.tag
- Hex type string representing the EPC value of the tag accessed by the Device.rssi
- Float representing the RSSI value.phase
- Float representing the phase value.frequency
- Float representing the frequency value.void onAccessResult(AsReader reader, ResultCode code, ActionState action, java.lang.String epc, java.lang.String data, float rssi, float phase, float frequency)
reader
- AsReader instance that fired the event.code
- ResultCode enumeration indicating the result that the Device accessed the Tag.action
- ActionState enumeration indicating the behavior that the Device accessed the Tag.epc
- Hex type string representing the EPC value of the tag accessed by the Device.data
- Hex type string that indicates the data of the memory that is read when the Device performs the "Read Memory" function.rssi
- Float representing the RSSI value.phase
- Float representing the phase value.frequency
- Float representing the frequency value.void onCommandComplete(AsReader reader, CommandType command)
reader
- AsReader instance that fired the event.command
- CommandType enumeration representing the completed command.void onReadBarcode(AsReader reader, BarcodeType type, java.lang.String codeId, java.lang.String barcode)
reader
- AsReader instance that fired the event.type
- BarcodeType enumeration that indicates the type of decoded bar code.codeId
- String representing the code ID that separates the barcode.barcode
- String representing the decoded barcode.void onKeyEvent(AsReader reader, KeyType key, KeyState state)
reader
- AsReader instance that fired the event.key
- KeyType representing the type of key.state
- KeyState representing the type of statusvoid onExceptionOccurred(AsReader reader, int code)
reader
- AsReader instance that fired the event.code
- Integer representing the exception value.