LocationEngine

interface LocationEngine

Generic location engine interface wrapper for the location providers. Default providers bundled with Mapbox location library: Android location provider and Google Play Services fused location provider

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.

Inheritors

Link copied to clipboard