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

Builder
Link copied to clipboard
class Builder(context: Context)
Builds an instance of TripProgressUpdateFormatter

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
An implementation of equals
getDistanceRemaining
Link copied to clipboard
fun getDistanceRemaining(value: Double): SpannableString
Formats the distance remaining
getEstimatedTimeToArrival
Link copied to clipboard
fun getEstimatedTimeToArrival(value: Long): SpannableString
Formats the estimated time until arrival
getPercentRouteTraveled
Link copied to clipboard
fun getPercentRouteTraveled(value: Double): SpannableString
Formats the percent distance traveled
getTimeRemaining
Link copied to clipboard
fun getTimeRemaining(value: Double): SpannableString
Formats the time remaining
hashCode
Link copied to clipboard
open override fun hashCode(): Int
Returns a hash code value for the object.
toBuilder
Link copied to clipboard
fun toBuilder(context: Context): TripProgressUpdateFormatter.Builder
toString
Link copied to clipboard
open override fun toString(): String