DistanceFormatterOptions

class DistanceFormatterOptions

Gives options to format the distance in the trip notification.

If not provided, the object will infer device language and unit type using the device locale from the context.

Parameters

applicationContext

from which to get localized strings from

locale

the locale to use for localization of distance resources

unitType

to use for voice and visual information.

roundingIncrement

increment by which to round small distances

Types

Builder
Link copied to clipboard
class Builder(applicationContext: Context)

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Regenerate whenever a change is made
hashCode
Link copied to clipboard
open override fun hashCode(): Int
Regenerate whenever a change is made
toBuilder
Link copied to clipboard
fun toBuilder(): DistanceFormatterOptions.Builder
toString
Link copied to clipboard
open override fun toString(): String
Regenerate whenever a change is made

Properties

applicationContext
Link copied to clipboard
val applicationContext: Context
from which to get localized strings from
locale
Link copied to clipboard
val locale: Locale
the locale to use for localization of distance resources
roundingIncrement
Link copied to clipboard
val roundingIncrement: Int
increment by which to round small distances
unitType
Link copied to clipboard
val unitType: UnitType
to use for voice and visual information.