This class provides methods for managing the flow of the events. See the Global Client Events article for more information about the system out-of-the-box events that the class can interact with.
on(eventType, callback)
Use this method to subscribe to an event.
Parameters:
Name
Type
Mandatory
Default value
eventType
String
Y
N
callback
Function
Y
N
Return:
Type
Description
Object
An object containing a method to unsubscribe from the event.