on()
Binds a callback function that will be invoked when the eventName
is fired for the individual report.
See Reports API Events for a full list of events.
Arguments
-
eventName string
Name of the event that you want to start listening to.
-
eventCallback callback
Callback function that will be triggered whenever the event is fired.
Return value
None (undefined
).