LocationManager.RemoveUpdates メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| RemoveUpdates(PendingIntent) |
指定した |
| RemoveUpdates(ILocationListener) |
指定した |
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
場所の更新が不要になった保留中の意図
- 属性
例外
意図が null の場合
注釈
指定した PendingIntentの場所の更新を削除します。 この呼び出しの後、PendingIntent は場所の更新プログラムを受信しなくなります。
このメソッドの動作の詳細については、 #removeUpdates(LocationListener) を参照してください。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
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
場所の更新が不要になったリスナー
- 属性
例外
リスナーが null の場合
注釈
指定した LocationListenerのすべての場所の更新を削除します。 指定されたリスナーは、このメソッドが呼び出 <b>happens-after</b> 呼び出される呼び出しを受信しないことが保証されます。
指定されたリスナーにバッチ化された要求がある場合、このメソッドは、場所の更新を停止する前に不完全な場所のバッチをフラッシュしません。 停止する前に保留中の場所をフラッシュする場合は、まず #requestFlush(String, LocationListener, int) を呼び出し、フラッシュが完了したらこのメソッドを呼び出す必要があります。 フラッシュが完了する前にこのメソッドが呼び出されると、フラッシュされた場所を受け取らない可能性があります。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。