SubscribeEvents

virtual PSubscription IEventSource::SubscribeEvents(const std::vector<PEvent> &events, EventOccurredHandler handler) = 0

Subscribes a callback to be executed when any of the selected events occur.

Parameters
  • events – Events of this event source that should trigger the callback.

  • handler – Function to be called when any of the selected events occur.

Returns

PSubscription – An ISubscription for the callback.

Throws