インタフェース DeviceManagerCallback
public interface DeviceManagerCallback
Receive callbacks for device manager processing.
-
メソッドの概要
修飾子とタイプメソッド説明void
onBatteryStateReceived
(int battery) Response to the current battery level.void
onConnect
(boolean isConnect) Called when a device is connectedvoid
onDeviceManagerError
(jp.co.asterisk.asreader.utility.AsReaderError.ErrorCode code) Error response to device setting.default void
onReaderInfoReceived
(Map<String, String> info) This method will be called back if "getReaderInfo" is successful.default void
onReaderSettingReceived
(Map<String, Boolean> settingParamMap) This method will be called back when the execution of "getReaderSettings" is successful.default void
This method will be called back when the execution of "setChargeControl" is successful.default void
This method will be called back when the execution of "setReaderSettings" is successful.default void
onSleepSettingReceived
(Map<String, String> sleepParamMAp) This method will be called back when the execution of sleep related command is successful.void
Give info about which hardware button is pushed
-
メソッドの詳細
-
onConnect
void onConnect(boolean isConnect) Called when a device is connected. ※ WhenDeviceManager.ConnectionControlMode
is USER, the callback is not made untilDeviceManager.open()
is executed.- パラメータ:
isConnect
- Connected status. ( true = Device is connected. / false = Device is disconnected. )
-
onBatteryStateReceived
void onBatteryStateReceived(int battery) Response to the current battery level.- パラメータ:
battery
- Battery level(value of %.)
-
onTriggerEventReceived
Give info about which hardware button is pushed- パラメータ:
event
- Trigger action event.DeviceConst.DeviceTriggerEvent
-
onReaderInfoReceived
This method will be called back if "getReaderInfo" is successful.
Receive information from the connected reader.- パラメータ:
info
- Map object that set each acquired value.
-
onSetReaderSettingSuccess
default void onSetReaderSettingSuccess()This method will be called back when the execution of "setReaderSettings" is successful. -
onReaderSettingReceived
This method will be called back when the execution of "getReaderSettings" is successful.- パラメータ:
settingParamMap
- Map object that has each acquired value.
-
onSleepSettingReceived
This method will be called back when the execution of sleep related command is successful.- パラメータ:
sleepParamMAp
- Map object that has each acquired value.
-
onSetChargeControlSuccess
default void onSetChargeControlSuccess()This method will be called back when the execution of "setChargeControl" is successful. -
onDeviceManagerError
void onDeviceManagerError(jp.co.asterisk.asreader.utility.AsReaderError.ErrorCode code) Error response to device setting.- パラメータ:
code
- Error code.
-