Distance.Unit

public static final enum Distance.Unit
extends Enum<Distance.Unit>

java.lang.Object
   ↳ java.lang.Enum<androidx.car.cluster.navigation.Distance.Unit>
     ↳ androidx.car.cluster.navigation.Distance.Unit


Possible units used to display this distance.

Summary

Enum values

Distance.Unit  FEET

 

Distance.Unit  KILOMETERS

 

Distance.Unit  METERS

 

Distance.Unit  MILES

 

Distance.Unit  UNKNOWN

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

Distance.Unit  YARDS

 

Public methods

static Distance.Unit valueOf(String name)
static final Unit[] values()

Inherited methods

Enum values

FEET

public static final Distance.Unit FEET

KILOMETERS

public static final Distance.Unit KILOMETERS

METERS

public static final Distance.Unit METERS

MILES

public static final Distance.Unit MILES

UNKNOWN

public static final Distance.Unit UNKNOWN

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

YARDS

public static final Distance.Unit YARDS

Public methods

valueOf

public static Distance.Unit valueOf (String name)

Parameters
name String

Returns
Distance.Unit

values

public static final Unit[] values ()

Returns
Unit[]