Class: EventEmitterT<Events>
@geenee/armature.EventEmitterT
EventEmitter generic class
These objects expose an on() function that allows one or more functions to be attached to named events emitted by the object. When the EventEmitter object emits an event, all of the functions attached to that specific event are called synchronously. Any values returned by the called listeners are ignored and discarded.
Type parameters
Name | Description |
---|---|
Events | Events emitted by EventEmitter |
Hierarchy
-
EventEmitterTI
<Events
,this
>↳
EventEmitterT
↳↳
Engine
↳↳
Processor
↳↳
VideoSource
↳↳
Renderer
Constructors
constructor
• new EventEmitterT<Events
>()
Type parameters
Name |
---|
Events |
Inherited from
(EventEmitter as { new<Events>(): EventEmitterTI<Events> })<Events>.constructor
Methods
addListener
▸ addListener<E
>(event
, listener
): EventEmitterT
<Events
>
Adds the listener function to the end of the listeners array
Type parameters
Name | Type |
---|---|
E | extends string | number | symbol |