Navigation SDK for Android Reference (1.0.0-rc.8)
All modules /  libnavigation-core / com.mapbox.navigation.core.replay / ReplayLocationEngine

ReplayLocationEngine

class ReplayLocationEngine : LocationEngine, ReplayEventsObserver

Location Engine for replaying route history.

Constructors

<init>

Location Engine for replaying route history.

ReplayLocationEngine(mapboxReplayer: MapboxReplayer)

Functions

getLastLocation

Returns the most recent location currently available.

fun getLastLocation(callback: EngineCallback): Unit

removeLocationUpdates

Removes location updates for the given location engine callback.

fun removeLocationUpdates(callback: EngineCallback): Unit

Removes location updates for the given pending intent.

fun removeLocationUpdates(pendingIntent: PendingIntent?): Unit

replayEvents

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

fun replayEvents(replayEvents: List<ReplayEventBase>): Unit

requestLocationUpdates

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

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

Requests location updates with callback on the specified PendingIntent.

fun requestLocationUpdates(request: LocationEngineRequest, pendingIntent: PendingIntent?): Unit