BatteryOptions
Battery condition monitoring settings. Used to configure the battery condition monitoring service needed to optimize power consumption when the charge level is low or to activate power saving mode.
public init(lowBatteryThreshold: Int, delegate: IBatteryManagerDelegate?)
Percentage of battery charge from which and below the charge is considered low. When the battery charge is low, aggressive power saving means may be activated and warnings may be displayed. Value range: 0...100.
Delegate of the battery monitoring service. Required to control turning on and off the battery status monitoring (see UIDevice.isBatteryMonitoringEnabled
), which allows you to automatically enable power optimization.
Default settings. The low battery limit is 15%. Battery status monitoring is disabled. Power optimization is not automatically enabled.