CarUnit
@CarProtocol
@RequiresCarApi(value = 3)
class CarUnit
Units such as speed, distance and volume for car hardware measurements and display.
Summary
Constants |
|
|---|---|
const Int |
Imperial Gallon unit. |
const Int |
KILOMETER = 3Kilometer unit. |
const Int |
KILOMETERS_PER_HOUR = 102Kilometers per hour unit. |
const Int |
@ExperimentalCarApiLiter unit. |
const Int |
METER = 2Meter unit. |
const Int |
METERS_PER_SEC = 101Meters per second unit. |
const Int |
MILE = 4Miles unit. |
const Int |
MILES_PER_HOUR = 103Miles per hour unit. |
const Int |
@ExperimentalCarApiMilliliter unit. |
const Int |
MILLIMETER = 1Millimeter unit. |
const Int |
@ExperimentalCarApiUS Gallon unit. |
Public functions |
|
|---|---|
java-static String |
Get a user friendly representation of the unit. |
Constants
IMPERIAL_GALLON
Added in 1.1.0
@ExperimentalCarApi
const val IMPERIAL_GALLON = 204: Int
Imperial Gallon unit.
KILOMETERS_PER_HOUR
Added in 1.1.0
const val KILOMETERS_PER_HOUR = 102: Int
Kilometers per hour unit.