updateWithRouteProgress

fun updateWithRouteProgress(routeProgress: RouteProgress, consumer: MapboxNavigationConsumer<Expected<RouteLineError, RouteLineUpdateValue>>)

Updates the state of the route line based on data in the RouteProgress passing a result to the consumer that should be rendered by the MapboxRouteLineView.

If the vanishing route line feature and style inactive route legs independently features were not enabled in MapboxRouteLineOptions, this method does not need to be called as it won't produce any updates.

This method will execute tasks on a background thread. There is a cancel method which will cancel the background tasks.

Parameters

routeProgress

a route progress object

consumer

a consumer for the result of this call