Returns a CFDictionary with readable information about the specific power source.
- macOS 10.2+
- Mac Catalyst 13.0+
The CFTypeRef returned by IOPSCopyPowerSourcesInfo()
One of the CFTypeRefs in the CFArray returned by IOPSCopyPowerSourcesList()
Returns NULL if an error was encountered, otherwise a CFDictionary. Caller should NOT release the returned CFDictionary - it will be released as part of the CFTypeRef returned by IOPSCopyPowerSourcesInfo().
See the C-strings defined in IOPSKeys.h for specific keys into the dictionary. Don't expect all keys to be present in any dictionary. Some power sources, for example, may not support the "Time Remaining To Empty" key and it will not be present in their dictionaries.