addEventListener
Last updated
Last updated
You can subscribe to any of the ApiEvents
, by adding a callback function that will execute whenever the subscribed event triggers.
eventName
callback
Example
Name of the event that the method will subscribe to.
(result:
) => void
Callback function which takes as parameter the result of the event you are subscribing to.