Condividi tramite


LocationManager.GetGpsStatus(GpsStatus) Method

Definition

Retrieves information about the current status of the GPS engine.

[Android.Runtime.Register("getGpsStatus", "(Landroid/location/GpsStatus;)Landroid/location/GpsStatus;", "GetGetGpsStatus_Landroid_location_GpsStatus_Handler")]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_FINE_LOCATION")]
public virtual Android.Locations.GpsStatus? GetGpsStatus (Android.Locations.GpsStatus? status);
[<Android.Runtime.Register("getGpsStatus", "(Landroid/location/GpsStatus;)Landroid/location/GpsStatus;", "GetGetGpsStatus_Landroid_location_GpsStatus_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_FINE_LOCATION")>]
abstract member GetGpsStatus : Android.Locations.GpsStatus -> Android.Locations.GpsStatus
override this.GetGpsStatus : Android.Locations.GpsStatus -> Android.Locations.GpsStatus

Parameters

status
GpsStatus

object containing GPS status details, or null.

Returns

status object containing updated GPS status.

Attributes

Remarks

Retrieves information about the current status of the GPS engine. This should only be called from within the GpsStatus.Listener#onGpsStatusChanged callback to ensure that the data is copied atomically.

The caller may either pass in an existing GpsStatus object to be overwritten, or pass null to create a new GpsStatus object.

This member is deprecated. GpsStatus APIs are deprecated, use GnssStatus APIs instead. No longer supported in apps targeting S and above.

Java documentation for android.location.LocationManager.getGpsStatus(android.location.GpsStatus).

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