ReplayLocationEngine

class ReplayLocationEngine(mapboxReplayer: MapboxReplayer) : LocationEngine, ReplayEventsObserver

Location Engine for replaying route history.

Constructors

ReplayLocationEngine
Link copied to clipboard
fun ReplayLocationEngine(mapboxReplayer: MapboxReplayer)

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getLastLocation
Link copied to clipboard
open override fun getLastLocation(callback: EngineCallback)
Returns the most recent location currently available.
hashCode
Link copied to clipboard
open fun hashCode(): Int
removeLocationUpdates
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.
replayEvents
Link copied to clipboard
open override fun replayEvents(replayEvents: List<ReplayEventBase>)
Called with all events that occurred within a time window during replay
requestLocationUpdates
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.
toString
Link copied to clipboard
open fun toString(): String