IOPSGetBatteryWarningLevel

Function IOPSGetBatteryWarningLevel 

Source
pub extern "C-unwind" fn IOPSGetBatteryWarningLevel() -> IOPSLowBatteryWarningLevel
Available on crate feature ps only.
Expand description

Indicates whether the system is at a low battery warning level.

If your app runs in full screen mode and occludes OS X’s battery monitor’s low battery warnings, you should alert the user at least when the system is in kIOPSLowBatteryWarnFinal.