Skip to content
Andrei Fangli edited this page Jun 2, 2021 · 7 revisions
API / IEvent<TEventArgs> interface

Represents an event to which objects can subscribe and unsubscribe from. Similar to an event in .NET.

interface IEvent<TEventArgs = void>

Template Parameters

  • TEventArgs: optional, can be used to provide context when notifying subscribers.

Methods

  • subscribe: subscribes the given eventHandler to the event.
  • unsubscribe: unsubscribes the given eventHandler to the event. The exact same object that was used to subscribe to the event must be passed as well.
Clone this wiki locally