Platforms to show: All Mac Windows Linux Cross-Platform

Back to SleepNotificationMBS class.

SleepNotificationMBS.Sleep(message as int64) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Power MBS MacOSX Plugin 8.0 ✅ Yes ❌ No ❌ No ❌ No
A message was received.

Use the constants to check what message you got.

Return true to deny or false to allow.

On the Can Messages the plugin informs the system about Deny or Allow, but on the Will messages, it will not answer if you return true, so the system will wait for an answer and delay sleep. There seems to be no way to delay more than 30 seconds when the user selects the sleep menu command.

The message parameter is an int64 in Plugin version 9.7 so the integer comparison to the constants works better.

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


The biggest plugin in space...