From Bright Pattern Documentation
Jump to: navigation, search
• 5.19


switchActiveInteraction

Change the active interaction by ID.

Request

Syntax

switchActiveInteraction(interactionId: string): Promise<OperationResult<null>>

Parameters

Parameter Parameter Values Data Type Optional/Required Description
interactionId String Required The ID of the interaction you want to set as active

Example Request

    switchActiveInteractionButton.onclick = () => {

        const itemId = activeInteractionIdInput.value

        adApi.switchActiveInteraction(itemId)

    }

Return Value

null

< Previous | Next >