isBatteryMonitoringEnabled
A Boolean value that determines whether the app can monitor the device’s battery.
Declaration
var isBatteryMonitoringEnabled: Bool { get set }Discussion
This property defaults to false. To monitor the device’s battery, set this property to true. This enables both the batteryLevel and batteryState properties.