EventCallback typedef

void EventCallback (
  1. Event ev,
  2. Object context
)

The callback function to receive event notification. ev - Event event emitted by the publisher. context - Object passed while registering the subscription as context. This is useful especially when the listener want to receive context information for all future events emitted for the context.

Implementation

typedef void EventCallback(Event ev, Object context);