TimeRemainingFormatter

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

TimeRemainingFormatter
Link copied to clipboard
fun TimeRemainingFormatter(context: Context, locale: Locale? = null)
an application context instance

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
format
Link copied to clipboard
open override fun format(update: Double): SpannableString
  • Formats an update to a SpannableString representing the remaining travel time

hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

locale
Link copied to clipboard
var locale: Locale? = null
an optional Locale, if not provided the locale will be derived from the context