Share via


ProfilingManager.RegisterForAllProfilingResults(IExecutor, IConsumer) Method

Definition

Register a listener to be called for all profiling results for this 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

Parameters

executor
IExecutor

The executor to call back with.

listener
IConsumer

Listener to be triggered with result.

Attributes

Remarks

Register a listener to be called for all profiling results for this uid. Listeners set here will be called in addition to any provided with the request.

Note: If a callback attempt fails (for example, because your app is killed while a trace is in progress) re-delivery may be attempted using a listener added via this method.

Java documentation for android.os.ProfilingManager.registerForAllProfilingResults(java.util.concurrent.Executor, java.util.function.Consumer<android.os.ProfilingResult>).

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