Prevents the specified type of system sleep.
Creates an IOKit power assertion that stops macOS from allowing the specified type of sleep. Call allowSleep with the same type to release the assertion.
allowSleep
The sleep type to prevent. One of: "display" (prevent display
"display"
true if the assertion was created successfully.
true
Prevents the specified type of system sleep.
Creates an IOKit power assertion that stops macOS from allowing the specified type of sleep. Call
allowSleepwith the same type to release the assertion.