Public Method Reports API

on()

Binds a callback function that will be invoked whenever the eventName is triggered.

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).