語言

LocationManager.RemoveProximityAlert(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 不再需要收到接近警報通知

屬性

例外狀況

若意圖為空

備註

移除接近警報,並設定為待處理意圖。

在 API 版本 17 之前,此方法可搭配 android.Manifest.permission#ACCESS_FINE_LOCATION 或 android.Manifest.permission#ACCESS_COARSE_LOCATION使用 。 從 API 版本 17 起,此方法需要 android.Manifest.permission#ACCESS_FINE_LOCATION 權限。

Java 文件 android.location.LocationManager.removeProximityAlert(android.app.PendingIntent)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於