isBatteryMonitoringEnabled
A Boolean value that indicates whether battery monitoring is enabled.
Declaration
var isBatteryMonitoringEnabled: Bool { get set }Discussion
Enable battery monitoring if your app needs to be notified of changes to the battery state, or if you want to check the battery charge level.
The default value of this property is false, which:
Disables the posting of battery-related notifications
Disables the ability to read battery charge level and battery state