語言

LocationManager.RemoveUpdates 方法

定義

多載

名稱 Description
RemoveUpdates(PendingIntent)

移除指定 PendingIntent位置更新。

RemoveUpdates(ILocationListener)

移除指定 LocationListener位置的所有更新。

RemoveUpdates(PendingIntent)

移除指定 PendingIntent位置更新。

[Android.Runtime.Register("removeUpdates", "(Landroid/app/PendingIntent;)V", "GetRemoveUpdates_Landroid_app_PendingIntent_Handler")]
public virtual void RemoveUpdates(Android.App.PendingIntent pendingIntent);
[<Android.Runtime.Register("removeUpdates", "(Landroid/app/PendingIntent;)V", "GetRemoveUpdates_Landroid_app_PendingIntent_Handler")>]
abstract member RemoveUpdates : Android.App.PendingIntent -> unit
override this.RemoveUpdates : Android.App.PendingIntent -> unit

參數

pendingIntent
PendingIntent

等待意圖,不再需要位置更新

屬性

例外狀況

若意圖為空

備註

移除指定 PendingIntent位置更新。 此通話結束後,PendingIntent 將不再接收位置更新。

關於此方法的更多細節請參見 #removeUpdates(LocationListener) 。

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

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

適用於

RemoveUpdates(ILocationListener)

移除指定 LocationListener位置的所有更新。

[Android.Runtime.Register("removeUpdates", "(Landroid/location/LocationListener;)V", "GetRemoveUpdates_Landroid_location_LocationListener_Handler")]
public virtual void RemoveUpdates(Android.Locations.ILocationListener listener);
[<Android.Runtime.Register("removeUpdates", "(Landroid/location/LocationListener;)V", "GetRemoveUpdates_Landroid_location_LocationListener_Handler")>]
abstract member RemoveUpdates : Android.Locations.ILocationListener -> unit
override this.RemoveUpdates : Android.Locations.ILocationListener -> unit

參數

listener
ILocationListener

不再需要位置更新的聽眾

屬性

例外狀況

若 listener 為空

備註

移除指定 LocationListener位置的所有更新。 給定監聽者保證不會收到任何 <b>在/b> 之後發生<的調用。

如果給定的監聽器有任何批次請求,此方法在停止位置更新前不會清除任何不完整的位置批次。 如果你想在停止前沖洗任何待處理的地點,必須先打電話 #requestFlush(String, LocationListener, int) ,沖洗完成後再呼叫這個方法。 如果在清順完成前就啟動此方法,您可能無法收到清順位置。

Java 文件 android.location.LocationManager.removeUpdates(android.location.LocationListener)。

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

適用於