Dela via


LocationManager.RemoveProximityAlert(PendingIntent) Method

Definition

Removes the proximity alert with the given PendingIntent.

[Android.Runtime.Register("removeProximityAlert", "(Landroid/app/PendingIntent;)V", "GetRemoveProximityAlert_Landroid_app_PendingIntent_Handler")]
public virtual void RemoveProximityAlert (Android.App.PendingIntent intent);
[<Android.Runtime.Register("removeProximityAlert", "(Landroid/app/PendingIntent;)V", "GetRemoveProximityAlert_Landroid_app_PendingIntent_Handler")>]
abstract member RemoveProximityAlert : Android.App.PendingIntent -> unit
override this.RemoveProximityAlert : Android.App.PendingIntent -> unit

Parameters

intent
PendingIntent

the PendingIntent that no longer needs to be notified of proximity alerts

Attributes

Exceptions

if intent is null

if AccessFineLocation permission is not present

Remarks

Removes the proximity alert with the given PendingIntent.

Before API version 17, this method could be used with android.Manifest.permission#ACCESS_FINE_LOCATION or android.Manifest.permission#ACCESS_COARSE_LOCATION. From API version 17 and onwards, this method requires android.Manifest.permission#ACCESS_FINE_LOCATION permission.

Java documentation for android.location.LocationManager.removeProximityAlert(android.app.PendingIntent).

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