public interface IDeviceEventListener
Modifier and Type | Method and Description |
---|---|
void |
onActionChanged(ResultCode resultCode,
ActionType actionType,
java.lang.Object params)
Called when the operational state of the Device.
|
void |
onBatteryState(int batteryState,
java.lang.Object params)
Called to report the battery state of the Device.
|
void |
onEvent(int sub,
java.lang.Object data) |
void |
onKeyEvent(KeyType keyType,
KeyState keyState,
java.lang.Object params)
Called to report the key type and state of the Device.
|
void |
onNotificationState(NotificationState state,
java.lang.Object params)
Called to notify the state of the Device.
|
void |
onStateChanged(ConnectState state,
java.lang.Object params)
The BaseTransport instance associated with the BaseReader instance is called when the connection state of the Device changes.
|
void |
onTemperatureState(double temperature,
java.lang.Object params)
Called to report the temperature state of the Device.
|
void onStateChanged(ConnectState state, java.lang.Object params)
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 onActionChanged(ResultCode resultCode, ActionType actionType, java.lang.Object params)
resultCode
- ResultCode enumeration type indicating the operation result of the Device.actionType
- An ActionType enumeration indicating the device's operational state.params
- If the event is accompanied by additional information, a non-null value is passed to the instance.void onBatteryState(int batteryState, java.lang.Object params)
batteryState
- An integer representing 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 onEvent(int sub, java.lang.Object data)
void onKeyEvent(KeyType keyType, KeyState keyState, java.lang.Object params)
keyType
- An KeyType enum indicating the Device's Trigger Event.keyState
- An KeyState enum indicating the Device's Key Event.params
- If the event is accompanied by additional information, a non-null value is passed to the instance.void onNotificationState(NotificationState state, java.lang.Object params)
state
- A NotificationState enumeration indicating the notification status with the Device.params
- If the event is accompanied by additional information, a non-null value is passed to the instance.void onTemperatureState(double temperature, java.lang.Object params)
temperature
- An double representing the temperature state of the Device.params
- If the event is accompanied by additional information, a non-null value is passed to the instance.