Skip to main content

Manage & Monitor your Device Battery

Manage & Monitor your Device Battery

Use this component to get battery level, charge status, and plug status. Battery monitoring is done automatically under the hood.

To get started using it, you must use KmpBattery.

Below are the functions available


_4
fun getCurrentChargeLevel(): Long
_4
fun getCurrentChargeState(): BatteryChargeState
_4
fun getCurrentPowerSource(): BatteryPowerSource
_4
fun isEnergySaverOn(): Boolean

Any Setup Required?

None