Returns a CFRunLoopSourceRef that notifies the caller when power source information changes.
- macOS 10.2+
- Mac Catalyst 13.0+
A function to be called whenever any power source is added, removed, or changes.
Any user-defined pointer, passed to the IOPowerSource callback.
Returns NULL if an error was encountered, otherwise a CFRunLoopSource. Caller must release the CFRunLoopSource.
Returns a CFRunLoopSourceRef for scheduling with your CFRunLoop. If your project does not use a CFRunLoop, you can alternatively receive notifications via mach port, dispatch, or signal, via
notify using the name