Interface ReaderDevice.OnDeviceBatteryLevelListener

Enclosing class:
ReaderDevice

public static interface ReaderDevice.OnDeviceBatteryLevelListener
Interface definition for device battery level callback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onDeviceBatteryLevelReceived(ReaderDevice reader, int batteryLevel, Throwable error)
    Called as battery level information is available from the device
  • Method Details

    • onDeviceBatteryLevelReceived

      void onDeviceBatteryLevelReceived(ReaderDevice reader, int batteryLevel, Throwable error)
      Called as battery level information is available from the device
      Parameters:
      reader - The caller ReaderDevice instance
      batteryLevel - The battery level in percentage (0-100)
      error - The underlying cause of the failure or null if there was no error