Condividi tramite


GnssMeasurementsEvent.Callback.OnStatusChanged Method

Definition

Reports the latest status of the GNSS Measurements sub-system.

[Android.Runtime.Register("onStatusChanged", "(I)V", "GetOnStatusChanged_IHandler", ApiSince=24)]
public virtual void OnStatusChanged (Android.Locations.GnssMeasurementCallbackStatus status);
[<Android.Runtime.Register("onStatusChanged", "(I)V", "GetOnStatusChanged_IHandler", ApiSince=24)>]
abstract member OnStatusChanged : Android.Locations.GnssMeasurementCallbackStatus -> unit
override this.OnStatusChanged : Android.Locations.GnssMeasurementCallbackStatus -> unit

Parameters

Attributes

Remarks

Reports the latest status of the GNSS Measurements sub-system.

This member is deprecated. Do not rely on this callback. From Android S onwards this callback will be invoked once with #STATUS_READY in all cases for backwards compatibility, and then never invoked again. Use LocationManager APIs if you need to determine if GNSS measurements are supported or if location is off, etc...

Java documentation for android.location.GnssMeasurementsEvent.Callback.onStatusChanged(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to