TimeRemainingFormatter

class TimeRemainingFormatter(context: Context, var locale: Locale? = null) : ValueFormatter<Double, SpannableString>

Formats trip related data for displaying in the UI

Parameters

context

an application context instance

locale

an optional Locale, if not provided the locale will be derived from the context

Constructors

Link copied to clipboard
constructor(context: Context, locale: Locale? = null)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun format(update: Double): SpannableString