getBatteryLevel

@IntRange(from = 0, to = 100)
abstract fun getBatteryLevel(): Int

Retrieves the device's current battery charge level, as an integer percentage of full charge.

Return

current battery charge level