Builder


class Builder
kotlin.Any
   ↳ android.app.AppInteractionSession.UpdateParams.Builder

Builder for UpdateParams.

Summary

Public constructors

Constructor for Builder.

Public methods
AppInteractionSession.UpdateParams

Builds the UpdateParams.

AppInteractionSession.UpdateParams.Builder
setAdditionalTargetPackages(additionalTargetPackages: MutableList<String!>)

Sets the additional target packages for which the session will be interacting with.

AppInteractionSession.UpdateParams.Builder
setExtras(extras: Bundle)

Sets the additional metadata for this update.

AppInteractionSession.UpdateParams.Builder

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

Public constructors

Builder

Builder()

Constructor for Builder.

Public methods

build

fun build(): AppInteractionSession.UpdateParams

Builds the UpdateParams.

Return
AppInteractionSession.UpdateParams This value cannot be null.

setAdditionalTargetPackages

fun setAdditionalTargetPackages(additionalTargetPackages: MutableList<String!>): AppInteractionSession.UpdateParams.Builder

Sets the additional target packages for which the session will be interacting with.

Parameters
additionalTargetPackages MutableList<String!>: The list of additional target packages for which the app interaction session will be interacting with.
This value cannot be null.
Return
AppInteractionSession.UpdateParams.Builder This value cannot be null.

setExtras

fun setExtras(extras: Bundle): AppInteractionSession.UpdateParams.Builder

Sets the additional metadata for this update.

Parameters
extras Bundle: The additional metadata for this update.
This value cannot be null.
Return
AppInteractionSession.UpdateParams.Builder This value cannot be null.

setOnStartIntentSenderCallback

fun setOnStartIntentSenderCallback(
    executor: Executor,
    callback: Consumer<IntentSender!>
): AppInteractionSession.UpdateParams.Builder

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).

Parameters
executor Executor: 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 Consumer<IntentSender!>: the callback to be called when the session request needs to be approved by the user.
This value cannot be null.
Return
AppInteractionSession.UpdateParams.Builder This value cannot be null.