LocationManager.RemoveProximityAlert(PendingIntent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除接近警報,並設定為待處理意圖。
[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 不再需要收到接近警報通知
- 屬性
例外狀況
若意圖為空
如果 AccessFineLocation 沒有許可
備註
移除接近警報,並設定為待處理意圖。
在 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 所創建與分享的作品,並依授權條款所描述的使用進行修改。