onEvent abstract method

void onEvent(
  1. IContext? context,
  2. IEvent event,
  3. Parameters args
)

A method called when events this listener is subscrubed to are fired.

  • event a fired evemt
  • context (optional) a context to trace execution through call chain.
  • args event arguments.

Implementation

void onEvent(IContext? context, IEvent event, Parameters args);