request Location Updates
abstract fun requestLocationUpdates(@NonNull request: LocationEngineRequest, @NonNull callback: LocationEngineCallback<LocationEngineResult>, @Nullable looper: Looper)
Requests location updates with a callback on the specified Looper thread.
Since
1.0.0
Parameters
request
LocationEngineRequest for the updates.
callback
LocationEngineCallback for the location result LocationEngineResult.
looper
The Looper object whose message queue will be used to implement the callback mechanism, or null to invoke callbacks on the main thread.
Throws
if permission is not granted to access location services.
abstract fun requestLocationUpdates(@NonNull request: LocationEngineRequest, pendingIntent: PendingIntent)
Requests location updates with callback on the specified PendingIntent.
Since
1.1.0
Parameters
request
LocationEngineRequest for the updates.
pending Intent
PendingIntent for the location result LocationEngineResult.
Throws
if permission is not granted to access location services.