Compartir a través de


LocationManager.RequestFlush Method

Definition

Overloads

RequestFlush(String, ILocationListener, Int32)

Requests that the given provider flush any batched locations to listeners.

RequestFlush(String, PendingIntent, Int32)

Requests that the given provider flush any batched locations to listeners.

RequestFlush(String, ILocationListener, Int32)

Requests that the given provider flush any batched locations to listeners.

[Android.Runtime.Register("requestFlush", "(Ljava/lang/String;Landroid/location/LocationListener;I)V", "GetRequestFlush_Ljava_lang_String_Landroid_location_LocationListener_IHandler", ApiSince=31)]
public virtual void RequestFlush (string provider, Android.Locations.ILocationListener listener, int requestCode);
[<Android.Runtime.Register("requestFlush", "(Ljava/lang/String;Landroid/location/LocationListener;I)V", "GetRequestFlush_Ljava_lang_String_Landroid_location_LocationListener_IHandler", ApiSince=31)>]
abstract member RequestFlush : string * Android.Locations.ILocationListener * int -> unit
override this.RequestFlush : string * Android.Locations.ILocationListener * int -> unit

Parameters

provider
String

a provider listed by #getAllProviders()

listener
ILocationListener

a listener registered under the provider

requestCode
Int32

an arbitrary integer passed through to LocationListener#onFlushComplete(int)

Attributes

Remarks

Requests that the given provider flush any batched locations to listeners. The given listener (registered with the provider) will have LocationListener#onFlushComplete(int) invoked with the given result code after any locations that were flushed have been delivered. If #removeUpdates(LocationListener) is invoked before the flush callback is executed, then the flush callback will never be executed.

Java documentation for android.location.LocationManager.requestFlush(java.lang.String, android.location.LocationListener, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

RequestFlush(String, PendingIntent, Int32)

Requests that the given provider flush any batched locations to listeners.

[Android.Runtime.Register("requestFlush", "(Ljava/lang/String;Landroid/app/PendingIntent;I)V", "GetRequestFlush_Ljava_lang_String_Landroid_app_PendingIntent_IHandler", ApiSince=31)]
public virtual void RequestFlush (string provider, Android.App.PendingIntent pendingIntent, int requestCode);
[<Android.Runtime.Register("requestFlush", "(Ljava/lang/String;Landroid/app/PendingIntent;I)V", "GetRequestFlush_Ljava_lang_String_Landroid_app_PendingIntent_IHandler", ApiSince=31)>]
abstract member RequestFlush : string * Android.App.PendingIntent * int -> unit
override this.RequestFlush : string * Android.App.PendingIntent * int -> unit

Parameters

provider
String

a provider listed by #getAllProviders()

pendingIntent
PendingIntent

a pendingIntent registered under the provider

requestCode
Int32

an arbitrary integer that will be passed back as the extra value for #KEY_FLUSH_COMPLETE

Attributes

Remarks

Requests that the given provider flush any batched locations to listeners. The given PendingIntent (registered with the provider) will be sent with #KEY_FLUSH_COMPLETE present in the extra keys, and requestCode as the corresponding value.

Java documentation for android.location.LocationManager.requestFlush(java.lang.String, android.app.PendingIntent, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to