ReplayLocationEngine

class ReplayLocationEngine(mapboxReplayer: MapboxReplayer) : LocationEngine, ReplayEventsObserver

Location Engine for replaying route history.

Constructors

Link copied to clipboard
fun ReplayLocationEngine(mapboxReplayer: MapboxReplayer)

Functions

Link copied to clipboard
open override fun getLastLocation(callback: EngineCallback)

Returns the most recent location currently available.

Link copied to clipboard
open override fun removeLocationUpdates(pendingIntent: PendingIntent?)

Removes location updates for the given pending intent.

open override fun removeLocationUpdates(callback: EngineCallback)

Removes location updates for the given location engine callback.

Link copied to clipboard
open override fun replayEvents(replayEvents: List<ReplayEventBase>)

Called with all events that occurred within a time window during replay

Link copied to clipboard
open override fun requestLocationUpdates(request: LocationEngineRequest, pendingIntent: PendingIntent?)

Requests location updates with callback on the specified PendingIntent.

open override fun requestLocationUpdates(    request: LocationEngineRequest,     callback: EngineCallback,     looper: Looper?)

Requests location updates with a callback on the specified Looper thread.