Builder

class Builder(applicationContext: Context)

Builder of DistanceFormatterOptions

Parameters

applicationContext

converted to applicationContext to save memory leaks

Constructors

Link copied to clipboard
fun Builder(applicationContext: Context)

Functions

Link copied to clipboard
fun build(): DistanceFormatterOptions

Build a new instance of DistanceFormatterOptions

Link copied to clipboard
fun locale(locale: Locale): DistanceFormatterOptions.Builder

Use a non-default Locale. By default, the Locale is used from applicationContext

Link copied to clipboard
fun roundingIncrement(roundingIncrement: Int): DistanceFormatterOptions.Builder

Minimal value that distance might be stripped

Link copied to clipboard
fun unitType(unitType: UnitType?): DistanceFormatterOptions.Builder

Policy for the various units of measurement. If null, default unit for locale country will be used.