class ReplayProgressObserver @JvmOverloads constructor(mapboxReplayer: MapboxReplayer, replayRouteMapper: ReplayRouteMapper = ReplayRouteMapper()) : RouteProgressObserver

Register this to MapboxNavigation.registerRouteProgressObserver. This class will feed locations to your MapboxReplayer and simulate your active route for you.


Link copied to clipboard
fun ReplayProgressObserver(mapboxReplayer: MapboxReplayer, replayRouteMapper: ReplayRouteMapper = ReplayRouteMapper())


Link copied to clipboard
open override fun onRouteProgressChanged(routeProgress: RouteProgress)

Called by MapboxNavigation when this class has been registered. If you are handling your own RouteProgress, you can call this method directly.

Link copied to clipboard
fun updateOptions(options: ReplayRouteOptions): ReplayProgressObserver