Platforms to show: All Mac Windows Linux Cross-Platform

Back to IOPowerSourcesMBS class.

IOPowerSourcesMBS.ExternalPowerAdapterDetails as CFDictionaryMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Power MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns a CFDictionary that describes the attached (AC) external power adapter (if any external power adapter is attached.
Example
Var d as CFDictionaryMBS = IOPowerSourcesMBS.ExternalPowerAdapterDetails
Var dic as Dictionary = d.Dictionary

Var lines() as string
lines.Add "AdapterRevision: "+dic.Lookup("AdapterRevision", "")
lines.Add "AdapterID: "+dic.Lookup("AdapterID", "")
lines.Add "FamilyCode: "+dic.Lookup("FamilyCode", "")
lines.Add "SerialNumber: "+dic.Lookup("SerialNumber", "")
lines.Add "Watts: "+dic.Lookup("Watts", "")

MessageBox Join(lines, EndOfLine)

Returns a CFDictionary on success.
If no adapter is attached, or if there's an error, returns nil.

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...