public enum

Distance.Unit

extends java.lang.Enum<Distance.Unit>

 java.lang.Object

↳java.lang.Enum<Distance.Unit>

↳androidx.car.cluster.navigation.Distance.Unit

Overview

Possible units used to display this distance.

Summary

Enum Constants
FEET
KILOMETERS
METERS
MILES
UNKNOWNDisplay unit is unknown to the consumer, in which case, the distance shouldn't be displayed.
YARDS
Methods
public static Distance.UnitvalueOf(java.lang.String name)

public static Distance.Unitvalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

UNKNOWN

Display unit is unknown to the consumer, in which case, the distance shouldn't be displayed.

METERS

KILOMETERS

MILES

FEET

YARDS

Methods

public static Distance.Unit values()

public static Distance.Unit valueOf(java.lang.String name)