Name
warning period, notifications.warningperiod, kPMRPCNotificationsWarningPeriod, kPMObserveNotificationsWarningPeriod — Seconds to display warnings.
Synopsis
integer notifications.warningperiod( |
); |
Description
Seconds to display warnings.
Seconds before a host affecting action that a warning should be presented.
The warning is designed to provide the user with a reason for the shut down, sleep, or log out action that is taking place. It is not designed to replace the pending notification.
Security
warning period can be requested by any authenticated client.
Unauthenticated clients are authorized using the uk.co.dssw.powermanager.notifications.warningperiod right. By default, any local process can request warning period.
Examples
Example 82. C: notifications.warningperiod
CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault,kPMRPCNotificationsWarningPeriod);
Example 83. Objective-C: notifications.warningperiod
DSSWPMRequest* myRequest = [DSSWPMRequest requestWithRequest:kPMRPCNotificationsWarningPeriod];
Example 84. AppleScript: notifications.warningperiod
tell application "Power Manager Scripting"
set myResult to warning period of Notifications
end tell