Location Engine
interface LocationEngine
Generic location engine interface wrapper for the location providers. Default providers bundled with MapLibre location library: Android location provider and Google Play Services fused location provider
Since
1.0.0
Inheritors
Functions
Link copied to clipboard
Returns the most recent location currently available.
Link copied to clipboard
Removes location updates for the given pending intent.
Removes location updates for the given location engine callback.
Link copied to clipboard
abstract fun requestLocationUpdates(@NonNull request: LocationEngineRequest, pendingIntent: PendingIntent)
Requests location updates with callback on the specified PendingIntent.
abstract fun requestLocationUpdates(@NonNull request: LocationEngineRequest, @NonNull callback: LocationEngineCallback<LocationEngineResult>, @Nullable looper: Looper)
Requests location updates with a callback on the specified Looper thread.