语言

LocationManager.RequestFlush 方法

定义

重载

名称 说明
RequestFlush(String, ILocationListener, Int32)

请求给定提供程序将任何批处理位置刷新到侦听器。

RequestFlush(String, PendingIntent, Int32)

请求给定提供程序将任何批处理位置刷新到侦听器。

RequestFlush(String, ILocationListener, Int32)

请求给定提供程序将任何批处理位置刷新到侦听器。

[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

参数

provider
String

列出的提供程序 #getAllProviders()

listener
ILocationListener

在提供程序下注册的侦听器

requestCode
Int32

传递到的任意整数 LocationListener#onFlushComplete(int)

特性

注解

请求给定提供程序将任何批处理位置刷新到侦听器。 给定侦听器(注册到提供程序)将在 LocationListener#onFlushComplete(int) 已传递任何已刷新的位置后使用给定的结果代码调用。 如果在 #removeUpdates(LocationListener) 执行刷新回调之前调用,则永远不会执行刷新回调。

Java文档android.location.LocationManager.requestFlush(java.lang.String, android.location.LocationListener, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

RequestFlush(String, PendingIntent, Int32)

请求给定提供程序将任何批处理位置刷新到侦听器。

[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

参数

provider
String

列出的提供程序 #getAllProviders()

pendingIntent
PendingIntent

在提供程序下注册的 pendingIntent

requestCode
Int32

将作为额外值传递回的任意整数 #KEY_FLUSH_COMPLETE

特性

注解

请求给定提供程序将任何批处理位置刷新到侦听器。 给定的 PendingIntent(注册到提供程序)将随额外密钥中的存在一起发送 #KEY_FLUSH_COMPLETE ,并 requestCode 作为相应的值发送。

Java文档android.location.LocationManager.requestFlush(java.lang.String, android.app.PendingIntent, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于