From Bright Pattern Documentation
< 5.19:AgentDesktop-client-side-javascript-api-specification
Revision as of 04:01, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 >