LocationManager.RequestFlush 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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) 在執行沖洗回調前就被調用,則該沖洗回調永遠不會被執行。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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
一個以提供者名義註冊的待定意圖
- requestCode
- Int32
一個任意整數,會被傳回作為 的額外值 #KEY_FLUSH_COMPLETE
- 屬性
備註
請求該提供者將所有批次位置清空給監聽者。 給定的 PendingIntent(已註冊於提供者)會以額外的鍵requestCode值 存在 和對應的值發送#KEY_FLUSH_COMPLETE。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。