TripProgressUpdateFormatter

class TripProgressUpdateFormatter

Contains various trip related formatters

Parameters

estimatedTimeToArrivalFormatter

for formatting the estimated time to arrival

distanceRemainingFormatter

for formatting the trip distance remaining

timeRemainingFormatter

for formatting the travel time remaining

percentRouteTraveledFormatter

for formatting the percent distance traveled

Types

Link copied to clipboard
class Builder(context: Context)

Builds an instance of TripProgressUpdateFormatter

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

An implementation of equals

Link copied to clipboard
fun getDistanceRemaining(value: Double): SpannableString

Formats the distance remaining

Link copied to clipboard
fun getEstimatedTimeToArrival(value: Long): SpannableString

Formats the estimated time until arrival

Link copied to clipboard
fun getPercentRouteTraveled(value: Double): SpannableString

Formats the percent distance traveled

Link copied to clipboard
fun getTimeRemaining(value: Double): SpannableString

Formats the time remaining

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard
fun toBuilder(context: Context): TripProgressUpdateFormatter.Builder
Link copied to clipboard
open override fun toString(): String