public final class RouteRefresh extends Object
Constructor and Description |
---|
RouteRefresh(String accessToken)
Creates a
RouteRefresh object. |
RouteRefresh(String accessToken,
RefreshCallback refreshCallback)
Deprecated.
use
RouteRefresh(String) instead |
Modifier and Type | Method and Description |
---|---|
void |
refresh(RouteProgress routeProgress)
Deprecated.
use
refresh(RouteProgress, RefreshCallback) instead |
void |
refresh(RouteProgress routeProgress,
RefreshCallback refreshCallback)
Refreshes the
DirectionsRoute included in the RouteProgress and returns it
to the callback that was originally passed in. |
@Deprecated public RouteRefresh(String accessToken, RefreshCallback refreshCallback)
RouteRefresh(String)
insteadRouteRefresh
object which calls the RefreshCallback
with updated
routes.accessToken
- mapbox access tokenrefreshCallback
- to call with updated routespublic RouteRefresh(String accessToken)
RouteRefresh
object.accessToken
- mapbox access token@Deprecated public void refresh(RouteProgress routeProgress)
refresh(RouteProgress, RefreshCallback)
insteadDirectionsRoute
included in the RouteProgress
and returns it
to the callback that was originally passed in. The client will then have to update their
DirectionsRoute
with the LegAnnotation
s
returned in this response. The leg annotations start at the current leg index of the
RouteProgress
Note that if RefreshCallback
is not passed in RouteRefresh(String, RefreshCallback)
this call
will be ignored.
routeProgress
- to refresh via the route and current leg indexpublic void refresh(RouteProgress routeProgress, RefreshCallback refreshCallback)
DirectionsRoute
included in the RouteProgress
and returns it
to the callback that was originally passed in. The client will then have to update their
DirectionsRoute
with the LegAnnotation
s
returned in this response. The leg annotations start at the current leg index of the
RouteProgress
routeProgress
- to refresh via the route and current leg indexrefreshCallback
- to call with updated routes© 2019 Mapbox. All rights reserved.