インタフェース DeviceManagerCallback


public interface DeviceManagerCallback
Receive callbacks for device manager processing.
  • メソッドの詳細

    • onConnect

      void onConnect(boolean isConnect)
      Called when a device is connected. ※ When 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. )
    • onBatteryStateReceived

      void onBatteryStateReceived(int battery)
      Response to the current battery level.
      パラメータ:
      battery - Battery level(value of %.)
    • onTriggerEventReceived

      void onTriggerEventReceived(DeviceConst.DeviceTriggerEvent event)
      Give info about which hardware button is pushed
      パラメータ:
      event - Trigger action event. DeviceConst.DeviceTriggerEvent
    • onReaderInfoReceived

      default void onReaderInfoReceived(Map<String,String> info)
      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

      default void onReaderSettingReceived(Map<String,Boolean> settingParamMap)
      This method will be called back when the execution of "getReaderSettings" is successful.
      パラメータ:
      settingParamMap - Map object that has each acquired value.
    • onSleepSettingReceived

      default void onSleepSettingReceived(Map<String,String> sleepParamMAp)
      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.