Platforms to show: All Mac Windows Linux Cross-Platform
Power
Details about the internal batteries and notification about changes.
- Classes
- class IOPMAssertionMBS
- shared method AssertionsByProcess as Dictionary
- shared method AssertionsStatus as Dictionary
- method Constructor(type as string, level as Integer, name as string)
- shared method CreateWithDescription(AssertionType as string, Name as string, Details as string = "", HumanReadableReason as string = "", LocalizationBundlePath as string = "", Timeout as Double = 0, TimeoutAction as string = "") as IOPMAssertionMBS
- shared method CreateWithHandle(Handle as Integer) as IOPMAssertionMBS
- shared method CreateWithName(type as string, level as Integer, name as string) as IOPMAssertionMBS
- shared method CreateWithProperties(AssertionProperties as Dictionary) as IOPMAssertionMBS
- shared method DeclareUserActivity(AssertionName as string, userType as Integer, byref AssertionID as Integer) as Integer
- method Properties as Dictionary
- method SetProperty(key as string, value as Variant) as boolean
- property Details as String
- property Handle as Integer
- property HumanReadableReason as String
- property Level as Integer
- property LocalizationBundlePath as String
- property Name as String
- property RetainCount as Integer
- property Timeout as Double
- property TimeoutAction as String
- property Type as String
- class IOPMMBS
- property Handle as Integer
- property EthernetWakeOnLANSettings as Integer
- property GeneralAggressiveness as Integer
- property MinutesToDim as Integer
- property MinutesToSleep as Integer
- property MinutesToSpinDown as Integer
- property MotionSensor as Integer
- property PowerSource as Integer
- property SetProcessorSpeed as Integer
- class IOPowerSourcesMBS
- shared method ExternalPowerAdapterDetails as CFDictionaryMBS
- method Item(index as Integer) as CFDictionaryMBS
- method Update
- property Count as Integer
- event Changed
- class SleepNotificationMBS
- class WakeNotifierMBS
- property CallEvents as boolean
- property DisableSleep as boolean
- property HadSleeped as boolean
- property LastSleepTime as Double
- property LastWakeTime as Double
- property SleepCount as Integer
- property SleepEventCount as Integer
- property Valid as boolean
- property WakeCount as Integer
- event SleepDemand
- event SleepRequest as boolean
- event SleepRevoke
- event WakeUp
- class WindowsPowerStateMBS
- method ListenForBatteryCapacityChanged
- method ListenForLidSwitchStateChanged
- method ListenForPowerSourceChanged
- method ListenForSuspendResumeNotification
- event BatteryCapacityChanged(Percentage as Integer)
- event BatteryLow
- event LidSwitchStateChanged(LidState as Integer)
- event OEMEvent(eventcode as Integer)
- event PowerSettingChange(data as MemoryBlock)
- event PowerSourceChanged(power as Integer)
- event PowerStatusChange
- event QueryStandby(PromptUser as boolean) as boolean
- event QueryStandbyFailed
- event QuerySuspend(PromptUser as boolean) as boolean
- event QuerySuspendFailed
- event ResumeAutomatic
- event ResumeCritical
- event ResumeStandby
- event ResumeSuspend
- event Standby
- event Suspend
- class IOPMAssertionMBS
- Blog Entries
Release notes
- Version 23.4
- Added BatteryCapacityChanged, LidSwitchStateChanged and PowerSourceChanged events to WindowsPowerStateMBS class.
- Added ListenForBatteryCapacityChanged, ListenForLidSwitchStateChanged, ListenForPowerSourceChanged and ListenForSuspendResumeNotification methods to WindowsPowerStateMBS class.
- Added PowerSettingChange event for WindowsPowerStateMBS class.
- Version 17.3
- Fixed IOPowerSourcesMBS to work with AddHandler.
The items on this page are in the following plugins: MBS MacCF Plugin, MBS MacClassic Plugin, MBS MacOSX Plugin, MBS Win Plugin.