BatteryGaugeUpdater
public protocol BatteryGaugeUpdater : Peripheral
Battery gauge updater peripheral interface.
This peripheral allows to update the battery gauge
This peripheral can be retrieved by:
device.getPeripheral(Peripherals.batteryGaugeUpdater)
-
Requests preparing battery gauge update.
Declaration
Swift
func prepareUpdate() -> Bool
Return Value
true if prepare update request is sent
-
Requests battery gauge update.
Declaration
Swift
func update() -> Bool
Return Value
true if update request is sent
-
Current update unavailability reasons
Declaration
Swift
var unavailabilityReasons: Set<BatteryGaugeUpdaterUnavailabilityReasons> { get }
-
Current progress, in percent.
Declaration
Swift
var currentProgress: UInt { get }
-
Gives current update state.
Declaration
Swift
var state: BatteryGaugeUpdaterState { get }