BatteryOptions | iOS SDK | Urbi Documentation
iOS SDK

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?)
Parameters
lowBatteryThreshold
delegate
Properties

Percentage of battery charge starting at and below which the charge is considered low. When the battery charge is low, aggressive power saving tools 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.