EnergyLevel


@CarProtocol
@RequiresCarApi(value = 3)
class EnergyLevel


Information of the energy (fuel and battery) levels from the car hardware.

Summary

Nested types

A builder of EnergyLevel.

Public functions

Boolean
equals(other: Any?)
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
String

Public functions

equals

fun equals(other: Any?): Boolean

getBatteryPercent

Added in 1.1.0
fun getBatteryPercent(): CarValue<Float!>

Returns the battery percentage remaining from the car hardware.

getDistanceDisplayUnit

Added in 1.1.0
fun getDistanceDisplayUnit(): CarValue<Int!>

Returns the distance display unit from the car hardware.

See CarUnit for possible distance values.

getEnergyIsLow

Added in 1.1.0
fun getEnergyIsLow(): CarValue<Boolean!>

Returns if the remaining car energy is low from the car hardware.

getFuelPercent

Added in 1.1.0
fun getFuelPercent(): CarValue<Float!>

Returns the fuel percentage remaining from the car hardware.

getFuelVolumeDisplayUnit

Added in 1.1.0
@ExperimentalCarApi
fun getFuelVolumeDisplayUnit(): CarValue<Int!>

Returns the fuel volume display unit from the car hardware.

See CarUnit for possible volume values.

getRangeRemainingMeters

Added in 1.1.0
fun getRangeRemainingMeters(): CarValue<Float!>

Returns the range remaining from the car hardware in meters.

hashCode

fun hashCode(): Int

toString

fun toString(): String