Sets a property in the assertion.
- macOS 10.7+
- Mac Catalyst 13.0+Beta
The property to set. It must be a CFNumber or CFString, as specified by the property key named in whichProperty.
Returns kIOReturnNotPriviliged if the caller doesn't have permission to modify this assertion. Returns kIOReturnNotFound if PM can't locate this assertion. Returns kIOReturnError upon an unidentified error. Returns kIOReturnSuccess otherwise.
Only the process that created an assertion may change its properties.
Dynamically requests a system behavior from the power management system.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software