Publish Custom Events
You can publish any custom event by calling the UEF publish API on GlobalContext, RecordContext and Browser-TabContext.
The action name to which publish API is to be called is CustomEvent. In the publish request payload you can pass the customEventName and also any data along with that request by calling, setCustomEventName() and setEventPayload() APIs respectively.
By publishing a customEvent in this manner, will call a notification to all receivers who have before added a subscription for this same event. Also, those receivers will get the data with which this publish request is called.
You can get any data passed in the publish request feedback by calling getData() and getCustomEventName() on the response object of the publish request.