Returns a dictionary listing all assertions, grouped by their owning process.
- macOS 10.7+
- Mac Catalyst 13.0+
On success, this returns a dictionary of assertions per process. At the top level, keys to the CFDictionary are pids stored as CFNumbers (kCFNumberIntType). The value associated with each CFNumber pid is a CFArray of active assertions. Each entry in the CFArray is an assertion represented as a CFDictionary. See the keys kIOPMAssertionTypeKey and kIOPMAssertionLevelKey. Caller must CFRelease() this dictionary when done.
Returns kIOReturnSuccess on success.
Notes: One process may have multiple assertions. Several processes may have asserted the same assertion to different levels.