A script add-in can implement the OnPowerEvent method to receive notifications of certain system power-related events. The PowerEventData object is passed as the single argument to this method.
| Property Name | Return Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data  | 
string  | 
Returns data for this event. The meaning of this property varies depending on the value of the type property.  | 
||||||||||||
type  | 
string  | 
Returns the power event type. Possible events are: 
  |