public static final class NavigationProgress.Builder extends Object
NavigationProgress builder static inner class.| Constructor and Description |
|---|
Builder() |
Builder(NavigationProgress copy) |
| Modifier and Type | Method and Description |
|---|---|
NavigationProgress |
build()
Returns a
NavigationProgress built from the parameters previously set. |
NavigationProgress.Builder |
closestRoutePoint(Point closestRoutePoint)
Sets the
closestPointInRoute and returns a reference to this Builder so that the methods can be chained together. |
NavigationProgress.Builder |
distanceToClosestRoutePoint(double distanceToClosestRoutePoint)
Sets the
distanceToClosestPointInRoute and returns a reference to this Builder so that the methods can be chained together. |
NavigationProgress.Builder |
distanceToEndStep(double distanceToEndStep)
Sets the
distanceToEndStep and returns a reference to this Builder so that the methods can be chained together. |
NavigationProgress.Builder |
distanceToGoal(double distanceToGoal)
Sets the
distanceToGoal and returns a reference to this Builder so that the methods can be chained together. |
NavigationProgress.Builder |
indication(Indication indication)
Sets the
currentIndication and returns a reference to this Builder so that the methods can be chained together. |
NavigationProgress.Builder |
nextIndication(Indication nextIndication)
Sets the
nextIndication and returns a reference to this Builder so that the methods can be chained together. |
NavigationProgress.Builder |
routeStep(RouteStep routeStep)
Sets the
routeStep and returns a reference to this Builder so that the methods can be chained together. |
NavigationProgress.Builder |
speed(double speed)
Sets the
speed and returns a reference to this Builder so that the methods can be chained together. |
public Builder()
public Builder(NavigationProgress copy)
public NavigationProgress.Builder speed(double speed)
speed and returns a reference to this Builder so that the methods can be chained together.speed - the speed to setpublic NavigationProgress.Builder closestRoutePoint(Point closestRoutePoint)
closestPointInRoute and returns a reference to this Builder so that the methods can be chained together.closestRoutePoint - the closestPointInRoute to setpublic NavigationProgress.Builder distanceToClosestRoutePoint(double distanceToClosestRoutePoint)
distanceToClosestPointInRoute and returns a reference to this Builder so that the methods can be chained together.distanceToClosestRoutePoint - the distanceToClosestPointInRoute to setpublic NavigationProgress.Builder distanceToEndStep(double distanceToEndStep)
distanceToEndStep and returns a reference to this Builder so that the methods can be chained together.distanceToEndStep - the distanceToEndStep to setpublic NavigationProgress.Builder distanceToGoal(double distanceToGoal)
distanceToGoal and returns a reference to this Builder so that the methods can be chained together.distanceToGoal - the distanceToGoal to setpublic NavigationProgress.Builder routeStep(RouteStep routeStep)
routeStep and returns a reference to this Builder so that the methods can be chained together.routeStep - the routeStep to setpublic NavigationProgress.Builder indication(Indication indication)
currentIndication and returns a reference to this Builder so that the methods can be chained together.indication - the currentIndication to setpublic NavigationProgress.Builder nextIndication(Indication nextIndication)
nextIndication and returns a reference to this Builder so that the methods can be chained together.nextIndication - the nextIndication to setpublic NavigationProgress build()
NavigationProgress built from the parameters previously set.NavigationProgress built with parameters of this NavigationProgress.Builder