Subscribe API
The Subscribe API is used to subscribe to an event fired from the Fusion application.
Using this API, the external application can listen to the application, tab, or object level events from the Fusion application. Once an event is subscribed using this API, the external application will be notified until the subscription is disposed.
Syntax
subscribe: (payload: IEventSubscriptionPayload, callbackFunction: (response:IEventResponsePayload) => void) => ISubscriptionContext;
Parameters
Parameter Name | Required? | Description |
---|---|---|
payload | Yes | Request details for the subscription with corresponding event name. |
callbackFunction | Yes | A callback function, that will be called whenever the event is triggered inside the Fusion application. |