LocationManager.AddGpsStatusListener(GpsStatus+IListener) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.