From Bright Pattern Documentation
Jump to: navigation, search
(Created page with "<translate> =switchActiveInteraction= Change the active interaction by ID. ==Request== ''Syntax'' {| class="wikitable" |switchActiveInteraction(interactionId: string): Prom...")
 
(No difference)

Latest revision as of 13:50, 16 September 2022

• 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 >