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

Link copied to clipboard
class Builder(applicationContext: Context)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Regenerate whenever a change is made

Link copied to clipboard
open override fun hashCode(): Int

Regenerate whenever a change is made

Link copied to clipboard
fun toBuilder(): DistanceFormatterOptions.Builder
Link copied to clipboard
open override fun toString(): String

Regenerate whenever a change is made

Properties

Link copied to clipboard
val applicationContext: Context
Link copied to clipboard
val locale: Locale
Link copied to clipboard
val roundingIncrement: Int
Link copied to clipboard
val unitType: UnitType