Name

power state, powerstate, kPMElementPowerState — The power source state.

Synopsis

power state : string, choice

Description

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.
  • battery, kPMElementPowerState_Battery. Source is a battery and it is being drained.
  • unknown, kPMElementPowerState_Unknown. Source state is unavailable or unknown.