SleepNotificationMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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
The class to listen for sleep notifications on Mac OS X .

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


💬 Ask a question or report a problem