LocationProvider

Responsible for informing users of location updates.

The Location provider is responsible for providing the last known location and notifying users about new locations.

The location provider additionally facilitates the delivery of location updates to other modules within the Maps and Navigation SDKs; modules can subscribe to it to receive location updates.

Please note that the management of location permissions should be handled independently of this interface.

Properties

Link copied to clipboard

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

Functions

Link copied to clipboard

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

Link copied to clipboard
abstract fun disable()

Disables the location provider.

Link copied to clipboard
abstract fun enable()

Enables the location provider.

Link copied to clipboard

Removes previously registered OnLocationUpdateListener.

Inherited functions

Link copied to clipboard
abstract fun close()