EventHook Type<T>

Hierarchy

EventHook

Index

Methods

Methods

subscribe

subscribe(listener: IEventListener <T>): void

Subscribe a listener to this event.

Parameters

Name Type Description
listener IEventListener <T>

Returns void

unsubscribe

unsubscribe(listener: IEventListener <T>): void

Unsubscribe a listener from this event.

Parameters

Name Type Description
listener IEventListener <T>

Returns void

unsubscribeAll

unsubscribeAll(): void

Remove all listeners from this event.

Returns void