IOPSCopyExternalPowerAdapterDetails

Function IOPSCopyExternalPowerAdapterDetails 

Source
pub extern "C-unwind" fn IOPSCopyExternalPowerAdapterDetails() -> Option<CFRetained<CFDictionary>>
Available on crate feature ps only.
Expand description

Returns a CFDictionary that describes the attached (AC) external power adapter (if any external power adapter is attached.

Use the kIOPSPowerAdapter… keys described in IOPSKeys.h to interpret the returned CFDictionary.

Returns: Returns a CFDictionary on success. Caller must release the returned dictionary. If no adapter is attached, or if there’s an error, returns NULL.