public static final class NavigationRequest.Builder extends Object
NavigationState builder static inner class.| Constructor and Description |
|---|
Builder() |
Builder(NavigationRequest copy) |
| Modifier and Type | Method and Description |
|---|---|
NavigationRequest |
build()
Returns a
NavigationState with the previously set parameters. |
NavigationRequest.Builder |
distanceToGoalThreshold(double distanceToGoalThreshold)
Sets the distance threshold from when the goal is considered reached.
|
NavigationRequest.Builder |
outsideRouteThreshold(double outsideRouteThreshold)
Sets the
outsideRouteThreshold. |
NavigationRequest.Builder |
route(Route route)
Sets the
Route whose progress is going to be updated. |
public Builder()
public Builder(NavigationRequest copy)
public NavigationRequest.Builder route(Route route)
Route whose progress is going to be updated.route - the route to set, so that the methods can be chained together.public NavigationRequest.Builder distanceToGoalThreshold(double distanceToGoalThreshold)
NavigationRequest.DEFAULT_DISTANCE_THRESHOLD}.distanceToGoalThreshold - the distanceToGoalThreshold to set, in meters.public NavigationRequest.Builder outsideRouteThreshold(double outsideRouteThreshold)
outsideRouteThreshold.
Default value is {NavigationRequest.DEFAULT_DISTANCE_THRESHOLD}.outsideRouteThreshold - the outsideRouteThreshold to setpublic NavigationRequest build() throws IllegalArgumentException
NavigationState with the previously set parameters.NavigationStateIllegalArgumentException