EstimatedTimeToArrivalFormatter

class EstimatedTimeToArrivalFormatter(context: Context, timeFormatType: Int = TimeFormat.NONE_SPECIFIED) : 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

Link copied to clipboard
constructor(context: Context, timeFormatType: Int = TimeFormat.NONE_SPECIFIED)

Functions

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

Formats an update to a SpannableString representing the estimated time to arrival