CarUnit

public final class CarUnit
extends Object

java.lang.Object
   ↳ androidx.car.app.hardware.common.CarUnit


Units such as speed, distance and volume for car hardware measurements and display.

Summary

Constants

int IMPERIAL_GALLON

Imperial Gallon unit.

int KILOMETER

int KILOMETERS_PER_HOUR

Kilometers per hour unit.

int LITER

Liter unit.

int METER

Meter unit.

int METERS_PER_SEC

Meters per second unit.

int MILE

Miles unit.

int MILES_PER_HOUR

Miles per hour unit.

int MILLILITER

Milliliter unit.

int MILLIMETER

Millimeter unit.

int US_GALLON

US Gallon unit.

Public methods

static String toString(int unit)

Get a user friendly representation of the unit.

Inherited methods

Constants

IMPERIAL_GALLON