LocationEngine

interface LocationEngine : Disposable

Responsible for informing users of location updates.

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

Functions

Link copied to clipboard
abstract fun addOnLocationUpdateListener(listener: OnLocationUpdateListener)

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

Link copied to clipboard
abstract fun disable()

Disables the location engine.

Link copied to clipboard
abstract fun dispose()
Link copied to clipboard
abstract fun enable()

Enables the location engine.

Link copied to clipboard
abstract fun removeOnLocationUpdateListener(listener: OnLocationUpdateListener)

Removes previously registered OnLocationUpdateListener.

Properties

Link copied to clipboard
abstract val lastKnownLocation: GeoLocation?

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