DashDistanceFormatter

class DashDistanceFormatter(applicationContext: Context, locale: Locale, observeUserPreferredUnitOfMeasurements: ObserveUserPreferredUnitOfMeasurementsUseCase, dispatcher: CoroutineDispatcher, roundingIncrement: Int) : ExtendedDistanceFormatter

Constructors

Link copied to clipboard
constructor(applicationContext: Context, locale: Locale, observeUserPreferredUnitOfMeasurements: ObserveUserPreferredUnitOfMeasurementsUseCase, dispatcher: CoroutineDispatcher, roundingIncrement: Int)

Types

Link copied to clipboard

Functions

Link copied to clipboard
open override fun formatDistance(distance: Double): SpannableString

Returns a formatted SpannableString with bold and size formatting. I.e., "10 mi", "350 m", "1,494 mi"

Link copied to clipboard
open override fun getFormattedDistanceParts(distance: Double): Pair<String, String?>