LocationEngine

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
abstract fun removeLocationUpdates(pendingIntent: PendingIntent)
Removes location updates for the given pending intent.
Removes location updates for the given location engine callback.
Link copied to clipboard
@RequiresPermission(anyOf = [])
abstract fun requestLocationUpdates(@NonNull request: LocationEngineRequest, pendingIntent: PendingIntent)
Requests location updates with callback on the specified PendingIntent.
Requests location updates with a callback on the specified Looper thread.