Builder

class Builder(applicationContext: Context)

Builder of DistanceFormatterOptions

Parameters

applicationContext

converted to applicationContext to save memory leaks

Constructors

Builder
Link copied to clipboard
fun Builder(applicationContext: Context)
converted to applicationContext to save memory leaks

Functions

build
Link copied to clipboard
fun build(): DistanceFormatterOptions
Build a new instance of DistanceFormatterOptions
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
locale
Link copied to clipboard
fun locale(locale: Locale): DistanceFormatterOptions.Builder
Use a non-default Locale.
roundingIncrement
Link copied to clipboard
fun roundingIncrement(roundingIncrement: Int): DistanceFormatterOptions.Builder
Minimal value that distance might be stripped
toString
Link copied to clipboard
open fun toString(): String
unitType
Link copied to clipboard
fun unitType(unitType: UnitType?): DistanceFormatterOptions.Builder
Policy for the various units of measurement.