CarUnit

public final class CarUnit
extends Object

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


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

Summary

Constants

int KILOMETER

int KILOMETERS_PER_HOUR

Kilometers per hour 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 MILLIMETER

Millimeter unit.

Inherited methods

Constants

KILOMETER

public static final int KILOMETER

Constant Value: 3 (0x00000003)

KILOMETERS_PER_HOUR

public static final int KILOMETERS_PER_HOUR

Kilometers per hour unit.

Constant Value: 102 (0x00000066)

METER

public static final int METER

Meter unit.

Constant Value: 2 (0x00000002)

METERS_PER_SEC

public static final int METERS_PER_SEC

Meters per second unit.

Constant Value: 101 (0x00000065)

MILE

public static final int MILE

Miles unit.

Constant Value: 4 (0x00000004)

MILES_PER_HOUR

public static final int MILES_PER_HOUR

Miles per hour unit.

Constant Value: 103 (0x00000067)

MILLIMETER

public static final int MILLIMETER

Millimeter unit.

Constant Value: 1 (0x00000001)