isOnBatteryPower

abstract external fun isOnBatteryPower(): Boolean(source)

Whether the system is on battery power.

To monitor for changes in this property, use the on-battery and on-ac events.