class BatteryState


Information about the battery state of the projected device.

Summary

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Int

the current battery level, from 0 to 100 inclusive

Boolean

true if the battery is currently charging, false otherwise

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

batteryLevel

Added in 1.0.0-alpha09
val batteryLevelInt

the current battery level, from 0 to 100 inclusive

isCharging

Added in 1.0.0-alpha09
val isChargingBoolean

true if the battery is currently charging, false otherwise