EventManager.request_event

EventManager.request_event(callback, send_request=True)[source]

Register an event callback with the event manager.

This function allows us to register an event callback with the event manager. Once registered, the callback function specified in the event callback will be invoked whenever a matching event is published in the system.

Parameters
  • callback (EventCallback) – The event callback to register.

  • send_request (bool, optional) – Whether the event request should be forwarded to the plugin that produces this event. Users should generally not provide this argument and use its default value. If the event producer is not informed about an event request it might not enable the appropriate features and the event might never be produced.

See also

EventCallback()