ProfilingManager.RegisterForAllProfilingResults(IExecutor, IConsumer) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
請註冊一名聆聽者,以便為此 UID 進行所有分析結果。
[Android.Runtime.Register("registerForAllProfilingResults", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=35)]
public void RegisterForAllProfilingResults(Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer listener);
[<Android.Runtime.Register("registerForAllProfilingResults", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=35)>]
member this.RegisterForAllProfilingResults : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
參數
- executor
- IExecutor
遺囑執行人可以回電。
- listener
- IConsumer
聆聽者會被觸發並產生結果。
- 屬性
備註
請註冊一名聆聽者,以便為此 UID 進行所有分析結果。 除了邀請的聽眾外,這裡的聽眾也會被邀請。
注意:若回調嘗試失敗(例如,因為追蹤進行中應用程式被終止),可能會透過此方法新增監聽器嘗試重新送達。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。