-
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
-
Checks is unavailability reason is present stopping the update.
Declaration
Swift
func hasUnavailabilityReason(_ reason: BatteryGaugeUpdaterUnavailabilityReasons) -> Bool
Parameters
reason
unavailability reason
Return Value
true if unavailability reason is present, false otherwise
-
Current progress, in percent.
Declaration
Swift
var currentProgress: UInt { get }
-
Gives current update state.
Declaration
Swift
var state: BatteryGaugeUpdaterState { get }