public interface DeviceManagerCallback
修飾子とタイプ | メソッドと説明 |
---|---|
void |
onBatteryStateReceived(int battery)
Response to the current battery level.
|
void |
onConnect(boolean isConnect)
Called when a device is connected
|
void |
onDeviceManagerError(jp.co.asterisk.asreader.utility.AsReaderError.ErrorCode code)
Error response to device setting.
|
default void |
onReaderInfoReceived(java.util.Map<java.lang.String,java.lang.String> info)
This method will be called back if "getReaderInfo" is successful.
|
default void |
onReaderSettingReceived(java.util.Map<java.lang.String,java.lang.Boolean> settingParamMap)
This method will be called back when the execution of "getReaderSettings" is successful.
|
default void |
onSetChargeControlSuccess()
This method will be called back when the execution of "setChargeControl" is successful.
|
default void |
onSetReaderSettingSuccess()
This method will be called back when the execution of "setReaderSettings" is successful.
|
void |
onTriggerEventReceived(DeviceConst.DeviceTriggerEvent event)
Give info about which hardware button is pushed
|
void onConnect(boolean isConnect)
DeviceManager.ConnectionControlMode
is USER, the callback is not made until DeviceManager.open()
is executed.isConnect
- Connected status. ( true = Device is connected. / false = Device is disconnected. )void onBatteryStateReceived(int battery)
battery
- Battery level(value of %.)void onTriggerEventReceived(DeviceConst.DeviceTriggerEvent event)
event
- Trigger action event. DeviceConst.DeviceTriggerEvent
default void onReaderInfoReceived(java.util.Map<java.lang.String,java.lang.String> info)
info
- Map object that set each acquired value. DeviceConst
default void onSetReaderSettingSuccess()
default void onReaderSettingReceived(java.util.Map<java.lang.String,java.lang.Boolean> settingParamMap)
settingParamMap
- Map object that has each acquired value. DeviceConst.settingParamMap
default void onSetChargeControlSuccess()
void onDeviceManagerError(jp.co.asterisk.asreader.utility.AsReaderError.ErrorCode code)
code
- Error code.