共用方式為


LocationManager.RemoveProximityAlert(PendingIntent) 方法

定義

使用指定的 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

參數

intent
PendingIntent

不再需要收到鄰近警示通知的 PendingIntent

屬性

例外狀況

如果意圖為 null,則為

如果許可權不存在,則 AccessFineLocation

備註

使用指定的 PendingIntent 移除鄰近警示。

在 API 第 17 版之前,此方法可以搭配 或android.Manifest.permission#ACCESS_COARSE_LOCATION使用android.Manifest.permission#ACCESS_FINE_LOCATION。 從 API 17 版和更新版本開始,此方法需要 android.Manifest.permission#ACCESS_FINE_LOCATION 許可權。

android.location.LocationManager.removeProximityAlert(android.app.PendingIntent)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於