EnergyLevel
@CarProtocol
@RequiresCarApi(value = 3)
class EnergyLevel
Information of the energy (fuel and battery) levels from the car hardware.
Summary
Nested types |
|---|
class EnergyLevel.BuilderA builder of |
Public functions |
|
|---|---|
Boolean |
|
CarValue<Float!> |
Returns the battery percentage remaining from the car hardware. |
CarValue<Int!> |
Returns the distance display unit from the car hardware. |
CarValue<Boolean!> |
Returns if the remaining car energy is low from the car hardware. |
CarValue<Float!> |
Returns the fuel percentage remaining from the car hardware. |
CarValue<Int!> |
Returns the fuel volume display unit from the car hardware. |
CarValue<Float!> |
Returns the range remaining from the car hardware in meters. |
Int |
hashCode() |
String |
toString() |
Public functions
getBatteryPercent
fun getBatteryPercent(): CarValue<Float!>
Returns the battery percentage remaining from the car hardware.
getDistanceDisplayUnit
fun getDistanceDisplayUnit(): CarValue<Int!>
Returns the distance display unit from the car hardware.
See CarUnit for possible distance values.
getEnergyIsLow
fun getEnergyIsLow(): CarValue<Boolean!>
Returns if the remaining car energy is low from the car hardware.
getFuelPercent
fun getFuelPercent(): CarValue<Float!>
Returns the fuel percentage remaining from the car hardware.
getFuelVolumeDisplayUnit
@ExperimentalCarApi
fun getFuelVolumeDisplayUnit(): CarValue<Int!>
Returns the fuel volume display unit from the car hardware.
See CarUnit for possible volume values.
getRangeRemainingMeters
fun getRangeRemainingMeters(): CarValue<Float!>
Returns the range remaining from the car hardware in meters.