registerGnssMeasurementsCallback

@RequiresPermission(value = "android.permission.ACCESS_FINE_LOCATION")
open fun registerGnssMeasurementsCallback(@NonNull locationManager: @NonNull LocationManager, callback: @NonNull GnssMeasurementsEvent.Callback, @NonNull handler: @NonNull Handler): Boolean(source)

Registers a GNSS measurement callback. See registerGnssMeasurementsCallback.

The primary purpose for this compatibility method is to help avoid crashes when delivering GNSS measurements to client on Android R. This bug was fixed in Android R QPR1, but since it's possible not all Android R devices have upgraded to QPR1, this compatibility method is provided to ensure GNSS measurements can be delivered successfully on all platforms.


@RequiresPermission(value = "android.permission.ACCESS_FINE_LOCATION")
open fun registerGnssMeasurementsCallback(@NonNull locationManager: @NonNull LocationManager, @NonNull executor: @NonNull Executor, callback: @NonNull GnssMeasurementsEvent.Callback): Boolean(source)

Registers a GNSS measurement callback. See registerGnssMeasurementsCallback.

In addition to allowing the use of Executors on older platforms, this compatibility method also helps avoid crashes when delivering GNSS measurements to clients on Android R. This bug was fixed in Android R QPR1, but since it's possible not all Android R devices have upgraded to QPR1, this compatibility method is provided to ensure GNSS measurements can be delivered successfully on all platforms.