EstimatedTimeToArrivalFormatter

class EstimatedTimeToArrivalFormatter(context: Context, timeFormatType: Int) : ValueFormatter<Long, SpannableString>

Formats trip related data for displaying in the UI

Parameters

context

an application context instance

timeFormatType

a value indicating whether the time should be formatted in 12 or 24 hour format

Constructors

EstimatedTimeToArrivalFormatter
Link copied to clipboard
fun EstimatedTimeToArrivalFormatter(context: Context, timeFormatType: Int = TimeFormat.NONE_SPECIFIED)
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: Long): SpannableString
Formats an update to a SpannableString representing the estimated time to arrival
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String