onRequestLocationUpdates

open fun onRequestLocationUpdates(@NonNull request: LocationRequest, @NonNull result: Task<Void>)

Called when the SDK requests location updates from Google Play Services.

The SDK uses a single PendingIntent for all location update requests to Google Play Services. Multiple requests may be issued with different LocationRequest parameters, but they all share the same PendingIntent. As a result, removing location updates clears all active requests.

Parameters

request

The LocationRequest used to request location updates.

result

The Task representing the result of the request. This can be used to check if the request was successful or if it failed.