Name

action await battery health, actionawaitbatteryhealth, kPMActionActionAwaitBatteryHealth — Wait for battery health to reach specific state.

Synopsis

action await battery health structure { type, now, before, filter };
type : string, choice
now : string, choice, optional
before : string, choice, optional
filter : power source filter structure, optional

Description

Wait for battery health to reach specific state.

The next action will not be performed until the specified time and date is reached.

Fields

type. Type of action to perform.

type is a string. type must be await battery health, kPMActionType_AwaitBatteryHealth.

now. New health of the power source.

now is a string. now is optional. now must be one of the following six constants:

  • good, kPMActionNow_Good.
  • fair, kPMActionNow_Fair.
  • poor, kPMActionNow_Poor.
  • check, kPMActionNow_Check.
  • failure, kPMActionNow_Failure.
  • unknown, kPMActionNow_Unknown.

before. Previous health of the power source.

before is a string. before is optional. before must be one of the following six constants:

  • good, kPMActionBefore_Good.
  • fair, kPMActionBefore_Fair.
  • poor, kPMActionBefore_Poor.
  • check, kPMActionBefore_Check.
  • failure, kPMActionBefore_Failure.
  • unknown, kPMActionBefore_Unknown.

filter. Power sources to monitor.

filter is a power source filter structure. filter is optional.