UnitType

enum UnitType : Enum<UnitType>

Unit type for voice and visual information. Note that this won't change other results such as raw distance measurements which will always be returned in meters.

Parameters

value

String representation of the unit type

Entries

IMPERIAL
Link copied to clipboard
IMPERIAL("imperial")
Imperial unit type.
METRIC
Link copied to clipboard
METRIC("metric")
Metric unit type.

Functions

compareTo
Link copied to clipboard
operator override fun compareTo(other: UnitType): Int
equals
Link copied to clipboard
operator override fun equals(other: Any?): Boolean
finalize
Link copied to clipboard
fun finalize()
getDeclaringClass
Link copied to clipboard
fun getDeclaringClass(): Class<UnitType>
hashCode
Link copied to clipboard
override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int
value
Link copied to clipboard
val value: String
String representation of the unit type