EnergyLevel


@CarProtocol
@RequiresCarApi(value = 3)
public final class EnergyLevel


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

Summary

Nested types

public final class EnergyLevel.Builder

A builder of EnergyLevel.

Public methods

boolean
@NonNull CarValue<Float>

Returns the battery percentage remaining from the car hardware.

@NonNull CarValue<Integer>

Returns the distance display unit from the car hardware.

@NonNull CarValue<Boolean>

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

@NonNull CarValue<Float>

Returns the fuel percentage remaining from the car hardware.

@NonNull CarValue<Integer>

Returns the fuel volume display unit from the car hardware.

@NonNull CarValue<Float>

Returns the range remaining from the car hardware in meters.

int
@NonNull String

Public methods

equals

public boolean equals(@Nullable Object other)

getBatteryPercent

Added in 1.1.0
public @NonNull CarValue<FloatgetBatteryPercent()

Returns the battery percentage remaining from the car hardware.

getDistanceDisplayUnit

Added in 1.1.0
public @NonNull CarValue<IntegergetDistanceDisplayUnit()

Returns the distance display unit from the car hardware.

See CarUnit for possible distance values.

getEnergyIsLow

Added in 1.1.0
public @NonNull CarValue<BooleangetEnergyIsLow()

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

getFuelPercent

Added in 1.1.0
public @NonNull CarValue<FloatgetFuelPercent()

Returns the fuel percentage remaining from the car hardware.

getFuelVolumeDisplayUnit

Added in 1.1.0
@ExperimentalCarApi
public @NonNull CarValue<IntegergetFuelVolumeDisplayUnit()

Returns the fuel volume display unit from the car hardware.

See CarUnit for possible volume values.

getRangeRemainingMeters

Added in 1.1.0
public @NonNull CarValue<FloatgetRangeRemainingMeters()

Returns the range remaining from the car hardware in meters.

hashCode

public int hashCode()

toString

public @NonNull String toString()