InTandemMessageHandler
Overview
InTandemMessageHandler
is a utility provided by the inTandemAppCom
package for managing communication and handling incoming messages. This includes processing messages and acknowledging receipt with optional success or failure details.
Installation
Ensure you have the inTandemAppCom
package installed:
npm install inTandemAppCom
Importing and Initializing
To use the message handler:
import InTandemMessageHandler from 'inTandemAppCom';
const messageHandler = new InTandemMessageHandler();
Functions
Function | Description |
---|---|
addEventListener | Listen to incoming events from the platform |
getState | Get the state of the current host (widget or page) |
setState | Set the state of the current host (widget or page) |
navigate | Navigate to a different page in the system |
openModal | Open a system modal over the current page |
getAuth | Get an authorization token to use with JWKS |
getUser | Get the basic details about the user (impersonation, locale, current domain...) |
Updated about 1 month ago