power state, powerstate, kPMElementPowerState — The power source state.
power state: string, choice
The power source state.
power state is a string.
power state must be one of the following four constants:
- off line,
kPMElementPowerState_OffLine. Source is unavailable or not connected.
- ac power,
kPMElementPowerState_AcPower. Source is external and battery is not being drained.
kPMElementPowerState_Battery. Source is a battery and it is being drained.
kPMElementPowerState_Unknown. Source state is unavailable or unknown.