setEventHandler abstract method

void setEventHandler(
  1. String name,
  2. EventListenerHandler handler
)

Assigns a handler function to an event with a given name.

If the event is emitted, the handler function will be called.

Implementation

void setEventHandler(String name, EventListenerHandler handler);