fireEvent()

Fires a custom event. This method is only available in API version 25.0 or later.

NameTypeDescription
eventTypestringThe type of custom event to fire.
messagestringThe message which is sent with the fired event.
callbackfunctionJavaScript method called when the custom event is fired.

This method is asynchronous, so it returns its response in an object in a callback method. The response object contains the following field:

NameTypeDescription
successbooleantrue if firing the event is successful, false if firing the event wasn’t successful.