onBatteryPower

A boolean property. True if the system is on battery power.

See powerMonitor.isOnBatteryPower().