Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

SleepNotificationMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Power MBS MacOSX Plugin 8.0 Yes No No Yes, macOS only No
Function: 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.

Feedback, Comments & Corrections

This class has no sub classes.

Some examples which use this class:

Blog Entries

The items on this page are in the following plugins: MBS MacOSX Plugin.

SKReceiptRefreshRequestMBS   -   Slider

The biggest plugin in space...

MBS Xojo Plugins