Syntax
setAppState(xAppTemplateId, xAppTemplateData)
Description
Updates the state of the xApp Session for the current conversation. Only works if an xApp Session was started beforehand. Parameters:xAppTemplateId:stringโ the URL to a hosted xApp template,generic-html, ornull.- If a URL is provided, the xApp template is loaded from that URL.
- If
generic-htmlis provided, the xApp page SDK is loaded from the host, and the HTML code defined inxAppTemplateData.htmlis displayed. - If
nullis provided, the active xApp page is closed.
xAppTemplateData:Record<string, unknown>โ the data payload for the xApp page.
void
Examples
Load an xApp Template
Load an xApp Template
Load a Generic HTML xApp page
Load a Generic HTML xApp page
Close an Active xApp Page
Close an Active xApp Page