From Bright Pattern Documentation
(Created page with "<translate> =acceptInteraction= Accept an incoming interaction. ==Request== ''Syntax'' {| class="wikitable" |acceptInteraction(interactionId?: string): Promise<OperationRes...") |
(Updated via BpDeleteTranslateTags script) |
||
Line 1: | Line 1: | ||
− | + | ||
=acceptInteraction= | =acceptInteraction= | ||
Line 38: | Line 38: | ||
''null'' | ''null'' | ||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 04:01, 29 May 2024
• 5.19
acceptInteraction
Accept an incoming interaction.
Request
Syntax
acceptInteraction(interactionId?: string): Promise<OperationResult<null>> |
Parameters
Parameter | Parameter Values | Data Type | Optional/Required | Description |
interactionId | String | Optional | The ID of the incoming interaction. If the ID is not specified, the active interaction will be tried. |
Example Request
acceptInteractionButton.onclick = () => {
const itemId = activeInteractionIdInput.value
adApi.acceptInteraction(itemId)
}
Return Value
null