ReplayProgressObserver

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

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

Constructors

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

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
onRouteProgressChanged
Link copied to clipboard
open override fun onRouteProgressChanged(routeProgress: RouteProgress)
Called by MapboxNavigation when this class has been registered.
toString
Link copied to clipboard
open fun toString(): String
updateOptions
Link copied to clipboard
fun updateOptions(options: ReplayRouteOptions): ReplayProgressObserver