SimulationLocationProvider

An implementation of LocationProvider that simulates location updates for testing purposes. Allows the specification of a strategy that determines how locations will be returned.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val lastKnownLocation: GeoLocation?

The last known location, or null if no location has been determined yet.

Link copied to clipboard

An instance of SimulationStrategy that simulates the location updates.

Functions

Link copied to clipboard

Adds an OnLocationUpdateListener which informs about new GeoLocation each time a location change occurs.

Link copied to clipboard
open override fun close()

Cancels the unfinished work and removes all registered OnLocationUpdateListeners.

Link copied to clipboard
open override fun disable()

Stops location updates.

Link copied to clipboard
open override fun enable()

Starts location updates.

Link copied to clipboard

Removes previously registered OnLocationUpdateListener.