Language

AppInteractionSession.UpdateParams.Builder.SetOnStartIntentSenderCallback Method

Definition

Called when the session update needs to be approved by the user.

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

the callback to be called when the session request needs to be approved by the user. This value cannot be null.

Returns

Attributes

Remarks

Called when the session update needs to be approved by the user.

This callback would be called when AppInteractionSession.update(UpdateParams,Executor,OutcomeReceiver) requires confirmation from the user.

Applications should launch the UI for the user to allow the update of the session by calling Context.startIntentSender(IntentSender,Intent,int,int,int).

Android reference for android.app.AppInteractionSession.UpdateParams.Builder.setOnStartIntentSenderCallback.

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