-
public interface BatteryLevelCallback
-
-
Method Summary
Modifier and Type Method Description abstract voidonBatteryLevelChanged(@NonNull() BluetoothDevice device, @IntRange(from = 0, to = 100) int batteryLevel)Callback received each time the Battery Level value was read or has changed usinga notification. -
-
Method Detail
-
onBatteryLevelChanged
abstract void onBatteryLevelChanged(@NonNull() BluetoothDevice device, @IntRange(from = 0, to = 100) int batteryLevel)
Callback received each time the Battery Level value was read or has changed usinga notification.
- Parameters:
device- the target device.batteryLevel- the battery value in percent.
-
-
-
-