ChargeLevel
public struct ChargeLevel
Describes capacity and current charge of the EV.
-
Creates an instance of
ChargeLevel.Note
Parameter maxCharge is not yet supported with the Orbis map.
Throws
VehicleError.invalidVehicleSnapshotif the current charge is outside of the [0 … max charge] range.Declaration
Swift
public init ( currentCharge: Measurement<UnitEnergy>, maxCharge: Measurement<UnitEnergy> ) throwsParameters
currentChargeSpecifies the current electric energy stored.
maxChargeSpecifies the maximum electric energy supply that may be stored in the vehicle’s battery.
-
Specifies the current electric energy stored.
Declaration
Swift
public let currentCharge: Measurement<UnitEnergy> -
Specifies the maximum electric energy supply that may be stored in the vehicle’s battery.
Note
This option is not yet supported with the Orbis map.Declaration
Swift
public let maxCharge: Measurement<UnitEnergy>
TomTom SDK for iOS (0.40.0)
ChargeLevel