ElectronPowerMonitor.isOnBatteryPower method
ElectronPowerMonitor › isOnBatteryPower
Unofficial
Whether the system is on battery power.To monitor for changes in this property, use the
on-battery and on-ac events. Signature:
isOnBatteryPower(): booleanReturns: boolean — true if the system is on battery power.