SimulationLocationEngine

class SimulationLocationEngine : LocationEngine

An implementation of LocationEngine that simulates location updates for testing purposes. Allows to specify strategy which determines how locations will be returned.

Important: This is a Public Preview API. It may be changed or removed at any time.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun addOnLocationUpdateListener(listener: OnLocationUpdateListener)
Link copied to clipboard
open override fun disable()

Stops location updates.

Link copied to clipboard
open override fun dispose()

Cancels the unfinished work and removes all registered OnLocationUpdateListeners.

Link copied to clipboard
open override fun enable()

Starts location updates.

Link copied to clipboard
open override fun removeOnLocationUpdateListener(listener: OnLocationUpdateListener)

Properties

Link copied to clipboard
open override val lastKnownLocation: GeoLocation?
Link copied to clipboard
val strategy: SimulationStrategy