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
const Int

Kilometers per hour unit.

const Int

Liter unit.

const Int
METER = 2

Meter unit.

const Int

Meters per second unit.

const Int
MILE = 4

Miles unit.

const Int

Miles per hour unit.

const Int

Milliliter unit.

const Int

Millimeter unit.

const Int

US Gallon unit.

Public functions

java-static String
toString(unit: Int)

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.

KILOMETER

Added in 1.1.0
const val KILOMETER = 3: Int

KILOMETERS_PER_HOUR

Added in 1.1.0
const val KILOMETERS_PER_HOUR = 102: Int

Kilometers per hour unit.

LITER

Added in 1.1.0
@ExperimentalCarApi
const val LITER = 202: Int

Liter unit.

METER

Added in 1.1.0
const val METER = 2: Int

Meter unit.

METERS_PER_SEC

Added in 1.1.0
const val METERS_PER_SEC = 101: Int

Meters per second unit.

MILE

Added in 1.1.0
const val MILE = 4: Int

Miles unit.

MILES_PER_HOUR

Added in 1.1.0
const val MILES_PER_HOUR = 103: Int

Miles per hour unit.

MILLILITER

Added in 1.1.0
@ExperimentalCarApi
const val MILLILITER = 201: Int

Milliliter unit.

MILLIMETER

Added in 1.1.0
const val MILLIMETER = 1: Int

Millimeter unit.

US_GALLON

Added in 1.1.0
@ExperimentalCarApi
const val US_GALLON = 203: Int

US Gallon unit.

Public functions

toString

Added in 1.2.0
java-static fun toString(unit: Int): String

Get a user friendly representation of the unit.