class BatteryState


Information about the battery state of the projected device.

Summary

Public constructors

BatteryState(
    isCharging: Boolean,
    batteryLevel: @IntRange(from = 0, to = 100) Int
)

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 constructors

BatteryState

Added in 1.0.0-alpha14
BatteryState(
    isCharging: Boolean,
    batteryLevel: @IntRange(from = 0, to = 100) Int
)

Public functions

equals

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

hashCode

open fun hashCode(): Int

Public properties

batteryLevel

Added in 1.0.0-alpha14
val batteryLevel: Int

the current battery level, from 0 to 100 inclusive

isCharging

Added in 1.0.0-alpha14
val isCharging: Boolean

true if the battery is currently charging, false otherwise