public interface IReaderEventListener
| Modifier and Type | Method and Description |
|---|---|
void |
batteryPercentageEvent(BaseReader reader,
byte percentage,
boolean charging,
java.lang.Object params)
Called when the battery percentage of the Device associated with the BaseReader instance changes.
|
void |
batteryStateEvent(BaseReader reader,
BatteryState batteryState,
java.lang.Object params)
Called when the battery state of the Device associated with the BaseReader instance changes.
|
void |
connectStateEvent(BaseReader reader,
ConnectState state,
java.lang.Object params)
Called when the connection state of the Device associated with the BaseReader instance changes.
|
void |
notificationEvent(BaseReader reader,
NotificationID id,
java.lang.Object params)
Called to notify the event of the Device associated with the BaseReader instance.
|
void batteryStateEvent(BaseReader reader, BatteryState batteryState, java.lang.Object params)
reader - The BaseReader instance that fired the event.batteryState - BatteryState enumeration type indicating the battery state of the Device.params - If the event is accompanied by additional information, a non-null value is passed to the instance.void batteryPercentageEvent(BaseReader reader, byte percentage, boolean charging, java.lang.Object params)
reader - The BaseReader instance that fired the event.percentage - The battery percentage of the Device.charging - The charging status of the Device.params - If the event is accompanied by additional information, a non-null value is passed to the instance.void connectStateEvent(BaseReader reader, ConnectState state, java.lang.Object params)
reader - The BaseReader instance that fired the event.state - A ConnectState enumeration indicating the connection status with the Device.params - If the event is accompanied by additional information, a non-null value is passed to the instance.void notificationEvent(BaseReader reader, NotificationID id, java.lang.Object params)
reader - The BaseReader instance that fired the event.id - NotificationID enumeration type indicating the notification event of the Device.params - If the event is accompanied by additional information, a non-null value is passed to the instance.