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..."
 
Updated via BpDeleteTranslateTags script
 
Line 1: Line 1:
<translate>
 
=switchActiveInteraction=
=switchActiveInteraction=


Line 39: Line 39:


''null''
''null''
</translate>

Latest revision as of 04:01, 29 May 2024

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 >