Mileage
@CarProtocol
@RequiresCarApi(value = 3)
class Mileage
Information about car mileage.
Summary
Nested types |
|---|
class Mileage.BuilderA builder of |
Public functions |
|
|---|---|
Boolean |
|
CarValue<Int!> |
Returns the distance display unit from the car hardware. |
CarValue<Float!> |
Returns the value of the odometer from the car hardware in kilometers. |
CarValue<Float!> |
This function is deprecated. use |
Int |
hashCode() |
String |
toString() |
Public functions
getDistanceDisplayUnit
fun getDistanceDisplayUnit(): CarValue<Int!>
Returns the distance display unit from the car hardware.
See CarUnit for possible distance values.
getOdometerInKilometers
fun getOdometerInKilometers(): CarValue<Float!>
Returns the value of the odometer from the car hardware in kilometers. The precision of this value depends on the hardware implementation. Some vehicles may return whole kilomters, while others may return down to tenths or hundredths of a kilometer.
getOdometerMeters
fungetOdometerMeters(): CarValue<Float!>
Returns the value of the odometer from the car hardware in KILOMETERS. Despite the name "meters", this method actually returns the odometer in kilometers. It was incorrectly introduced as meters and due to backwards compatibility concerns, can no longer be renamed or removed.