setEventSubscribeHandler abstract method

void setEventSubscribeHandler(
  1. String name,
  2. EventSubscriptionHandler handler
)

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

If the event is subscribed to, the handler function will be called to handle the interaction.

Implementation

void setEventSubscribeHandler(String name, EventSubscriptionHandler handler);