Builder

class Builder(context: Context)

Builds an instance of TripProgressUpdateFormatter

Parameters

context

a instance of a []Context]

Constructors

Builder
Link copied to clipboard
fun Builder(context: Context)
a instance of a []Context]

Functions

build
Link copied to clipboard
fun build(): TripProgressUpdateFormatter
Applies the supplied parameters and instantiates a TripProgressUpdateFormatter
distanceRemainingFormatter
Link copied to clipboard
fun distanceRemainingFormatter(formatter: ValueFormatter<Double, SpannableString>): TripProgressUpdateFormatter.Builder
A class that formats a TripProgressUpdateValue to a SpannableString representing the distance remaining of a route.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
estimatedTimeToArrivalFormatter
Link copied to clipboard
fun estimatedTimeToArrivalFormatter(formatter: ValueFormatter<Long, SpannableString>): TripProgressUpdateFormatter.Builder
A class that formats a TripProgressUpdateValue to a SpannableString representing the estimated time to arrival.
hashCode
Link copied to clipboard
open fun hashCode(): Int
percentRouteTraveledFormatter
Link copied to clipboard
fun percentRouteTraveledFormatter(formatter: ValueFormatter<Double, SpannableString>): TripProgressUpdateFormatter.Builder
A class that formats a TripProgressUpdateValue to a SpannableString representing the percentage of the route distance traveled.
timeRemainingFormatter
Link copied to clipboard
fun timeRemainingFormatter(formatter: ValueFormatter<Double, SpannableString>): TripProgressUpdateFormatter.Builder
A class that formats a TripProgressUpdateValue to a SpannableString representing the time remaining.
toString
Link copied to clipboard
open fun toString(): String