Platforms to show: All Mac Windows Linux Cross-Platform
SleepNotificationMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Power | MBS MacOSX Plugin | 8.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Uses IOKit.
Your application can use the sleep event to deny idle sleep, i.e. sleep after a period of inactivity. Applications should not deny idle sleep unless absolutely necessary.
The kIOMessage* constants in this class are declared in the Mac OS X headers, but they are not all used by the system.
In the plugins is the WakeNotifierMBS class and the SleepNotificationMBS class. WakeNotifierMBS uses the API coming from Mac OS and it can delay sleep. SleepNotificationMBS works on the lower Next APIs.
Constants
Constant | Value | Description |
---|---|---|
kIOMessageCanSystemPowerOff | &he0000240 | One of the message constants. |
kIOMessageCanSystemSleep | &he0000270 | One of the message constants. Idle sleep is about to kick in. more |
kIOMessageSystemHasPoweredOn | &he0000300 | One of the message constants. |
kIOMessageSystemWillNotPowerOff | &he0000260 | One of the message constants. |
kIOMessageSystemWillNotSleep | &he0000290 | One of the message constants. |
kIOMessageSystemWillPowerOff | &he0000250 | One of the message constants. |
kIOMessageSystemWillPowerOn | &he0000320 | One of the message constants. |
kIOMessageSystemWillRestart | &he0000310 | One of the message constants. |
kIOMessageSystemWillSleep | &he0000280 | One of the message constants. |
This class has no sub classes.
Some examples using this class:
Blog Entries
The items on this page are in the following plugins: MBS MacOSX Plugin.
SKReceiptRefreshRequestMBS - Slider