Language

AppInteractionSession.CreateParams.Builder.SetOnStartIntentSenderCallback Method

Definition

[Android.Runtime.Register("setOnStartIntentSenderCallback", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)Landroid/app/AppInteractionSession$CreateParams$Builder;", "", ApiSince=37)]
public Android.App.AppInteractionSession.CreateParams.Builder SetOnStartIntentSenderCallback(Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer callback);
[<Android.Runtime.Register("setOnStartIntentSenderCallback", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)Landroid/app/AppInteractionSession$CreateParams$Builder;", "", ApiSince=37)>]
member this.SetOnStartIntentSenderCallback : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> Android.App.AppInteractionSession.CreateParams.Builder

Parameters

executor
IExecutor

the executor to run the callback on. This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.

callback
IConsumer

Returns

Attributes

Applies to