Name

trigger, trigger, kPMTrigger — Description of an external event or potential change in state to watch.

Synopsis

trigger structure { type, ... };
type : string, choice

Description

Description of an external event or potential change in state to watch.

trigger describes an external event, such as a notification, or potential change in state, such as the Mac going to sleep, to watch.

The engine uses triggers to trigger events.

Fields

type. Type of trigger being described.

type is a string. type must be one of the following 16 constants:

  • once, kPMTriggerType_Once.
  • daily, kPMTriggerType_Daily.
  • inactive, kPMTriggerType_Inactive.
  • notification, kPMTriggerType_Notification.
  • power on, kPMTriggerType_PowerOn.
  • start up, kPMTriggerType_StartUp.
  • log in, kPMTriggerType_LogIn.
  • log out, kPMTriggerType_LogOut.
  • sample, kPMTriggerType_Sample.
  • power state, kPMTriggerType_PowerState.
  • battery health, kPMTriggerType_BatteryHealth.
  • power remaining, kPMTriggerType_PowerRemaining.
  • sun, kPMTriggerType_Sun.
  • external assistant, kPMTriggerType_ExternalAssistant.
  • sleep, kPMTriggerType_Sleep.
  • application, kPMTriggerType_Application.