importRouteFromHandle abstract method

  1. @Deprecated("Will be removed in v4.28.0. Use the `import_route()` method with RoutingOptions parameter instead.")
TaskHandle importRouteFromHandle(
  1. RouteHandle routeHandle,
  2. RefreshRouteOptions refreshRouteOptions,
  3. CalculateRouteCallback callback
)

Asynchronously recreates a route from the RouteHandle provided, i.e.

refreshes a previously calculated route, with the specified RefreshRouteOptions.

A route handle can be invalid when the map data changes that is used by the HERE sdk to recreate the route. This happens regularly. Therefore, the route handle is not meant to be persisted for a longer time.

  • routeHandle The route handle holding the route to be refreshed.

  • refreshRouteOptions Options to import the route from handle.

  • callback Callback object that will be invoked after refreshing the route. It is always invoked on the main thread.

Returns TaskHandle. Handle that will be used to manipulate the execution of the task.

Implementation

@Deprecated("Will be removed in v4.28.0. Use the `import_route()` method with RoutingOptions parameter instead.")

TaskHandle importRouteFromHandle(RouteHandle routeHandle, RefreshRouteOptions refreshRouteOptions, CalculateRouteCallback callback);