Builder

class Builder

Builder of RouteLegProgress.

Constructors

Builder
Link copied to clipboard
fun Builder()

Functions

build
Link copied to clipboard
fun build(): RouteLegProgress
Build new instance of RouteLegProgress
currentStepProgress
Link copied to clipboard
fun currentStepProgress(currentStepProgress: RouteStepProgress?): RouteLegProgress.Builder
RouteStepProgress object with information about the particular step the user is currently on
distanceRemaining
Link copied to clipboard
fun distanceRemaining(distanceRemaining: Float): RouteLegProgress.Builder
The distance remaining in meters until the user reaches the end of the leg
distanceTraveled
Link copied to clipboard
fun distanceTraveled(distanceTraveled: Float): RouteLegProgress.Builder
Total distance traveled in meters along current leg
durationRemaining
Link copied to clipboard
fun durationRemaining(durationRemaining: Double): RouteLegProgress.Builder
The duration remaining in seconds until the user reaches the end of the current step
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
fractionTraveled
Link copied to clipboard
fun fractionTraveled(fractionTraveled: Float): RouteLegProgress.Builder
The fraction traveled along the current leg, this is a float value between 0 and 1 and isn't guaranteed to reach 1 before the user reaches the next waypoint
hashCode
Link copied to clipboard
open fun hashCode(): Int
legIndex
Link copied to clipboard
fun legIndex(legIndex: Int): RouteLegProgress.Builder
Index representing the current leg the user is on.
routeLeg
Link copied to clipboard
fun routeLeg(routeLeg: RouteLeg?): RouteLegProgress.Builder
RouteLeg geometry
toString
Link copied to clipboard
open fun toString(): String
upcomingStep
Link copied to clipboard
fun upcomingStep(upcomingStep: LegStep?): RouteLegProgress.Builder
Next/upcoming step immediately after the current step.