percentRouteTraveledFormatter

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.

Return

the builder

Parameters

formatter

a formatter instance