ChargeLevel

data class ChargeLevel(val currentCharge: Energy, val maxCharge: Energy)

Important: This is a Public Preview API. It may be changed or removed at any time. Describes capacity and current charge of the EV.

Parameters

currentCharge

Specifies the current electric energy supply, typically in kilowatt hours (kWh). Applicable only for electric engines.

maxCharge

Specifies the capacity of the vehicle's battery, typically in kilowatt hours (kWh). Applicable only for electric engines. If used at all, it must be used in conjunction with {@link #withCurrentChargeInKWh(double)}.

Constructors

Link copied to clipboard
fun ChargeLevel(currentCharge: Energy, maxCharge: Energy)

Properties

Link copied to clipboard
val currentCharge: Energy
Link copied to clipboard
val maxCharge: Energy