Builder
Builds an instance of TripProgressUpdateFormatter
Parameters
context
a instance of a []Context]
Constructors
Functions
build
Link copied to clipboard
distanceRemainingFormatter
Link copied to clipboard
fun distanceRemainingFormatter(formatter: ValueFormatter<Double, SpannableString>): TripProgressUpdateFormatter.Builder
Content copied to clipboard
A class that formats a TripProgressUpdateValue to a SpannableString representing the distance remaining of a route.
estimatedTimeToArrivalFormatter
Link copied to clipboard
fun estimatedTimeToArrivalFormatter(formatter: ValueFormatter<Long, SpannableString>): TripProgressUpdateFormatter.Builder
Content copied to clipboard
A class that formats a TripProgressUpdateValue to a SpannableString representing the estimated time to arrival.
percentRouteTraveledFormatter
Link copied to clipboard
fun percentRouteTraveledFormatter(formatter: ValueFormatter<Double, SpannableString>): TripProgressUpdateFormatter.Builder
Content copied to clipboard
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
Content copied to clipboard
A class that formats a TripProgressUpdateValue to a SpannableString representing the time remaining.