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
fun TimeRemainingFormatter(context: Context, locale: Locale? = null)

Functions

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

Properties

Link copied to clipboard
var locale: Locale? = null