Subscribe Custom Events

You can subscribe to any custom event by calling the UEF subscribe API on GlobalContext, RecordContext and Browser-TabContext.

The event to which subscription is to be added to is CustomEvent. If the event request payload user can pass the customEventName and add a subscription by this manner you'll be notified whenever an event gets generated on top of the context to which has been added the subscription to. You can get any data passed in the event and the custom event for which the event is fired by calling getData() and getCustomEventName() on the response object of the event subscription.

These examples show adding a custom event subscription on different contexts: