ActivityManager.AddApplicationStartInfoCompletionListener Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a callback to be notified when the ApplicationStartInfo
records of this startup
are complete.
[Android.Runtime.Register("addApplicationStartInfoCompletionListener", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetAddApplicationStartInfoCompletionListener_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=35)]
public virtual void AddApplicationStartInfoCompletionListener (Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer listener);
[<Android.Runtime.Register("addApplicationStartInfoCompletionListener", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetAddApplicationStartInfoCompletionListener_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=35)>]
abstract member AddApplicationStartInfoCompletionListener : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.AddApplicationStartInfoCompletionListener : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
Parameters
- executor
- IExecutor
The executor on which the listener should be called.
- listener
- IConsumer
Callback to be called when collection of ApplicationStartInfo
is
complete. Will replace existing listener if one is already attached.
- Attributes
Remarks
Adds a callback to be notified when the ApplicationStartInfo
records of this startup are complete.
Note: callback will be removed automatically after being triggered.
Note: callback will not wait for Activity#reportFullyDrawn
to occur. Timestamp for fully drawn may be added after callback occurs. Set callback after invoking Activity#reportFullyDrawn
if timestamp for fully drawn is required.
Note: if start records have already been retrieved, the callback will be invoked immediately on the specified executor with the previously resolved AppStartInfo.
Note: callback is asynchronous and should be made from a background thread.
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.