Interface EventHandlers

This is a subset of the public interface that is managed by the event bus that is used for registering and unregistering event listeners on the bus.

interface EventHandlers {
    off: (handlers: TypeAndHandler | TypeAndHandler[]) => EventHandlers;
    on: (handlers: TypeAndHandler | TypeAndHandler[]) => EventHandlers;
    once: (handlers: TypeAndHandler | TypeAndHandler[]) => EventHandlers;
}

Hierarchy (View Summary)

Properties

Properties

Removes an event listener that was previously added via on or once.

Type declaration

Adds the given event handler as a listener for events of the given type.

Type declaration

Adds the given event handler as a listener for events of the given type. After the first event is handled, this handler will automatically be removed.

Type declaration

MMNEPVFCICPMFPCPTTAAATR