Compartir a través de


LocationManager.AddGpsStatusListener(GpsStatus+IListener) Method

Definition

Adds a GPS status listener.

[Android.Runtime.Register("addGpsStatusListener", "(Landroid/location/GpsStatus$Listener;)Z", "GetAddGpsStatusListener_Landroid_location_GpsStatus_Listener_Handler")]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_FINE_LOCATION")]
public virtual bool AddGpsStatusListener (Android.Locations.GpsStatus.IListener? listener);
[<Android.Runtime.Register("addGpsStatusListener", "(Landroid/location/GpsStatus$Listener;)Z", "GetAddGpsStatusListener_Landroid_location_GpsStatus_Listener_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_FINE_LOCATION")>]
abstract member AddGpsStatusListener : Android.Locations.GpsStatus.IListener -> bool
override this.AddGpsStatusListener : Android.Locations.GpsStatus.IListener -> bool

Parameters

listener
GpsStatus.IListener

GPS status listener object to register

Returns

true if the listener was successfully added

Attributes

Exceptions

if the ACCESS_FINE_LOCATION permission is not present

Remarks

Java documentation for android.location.LocationManager.addGpsStatusListener(android.location.Listener).

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