Skip to main content

alphaTab.IEventEmitterOfT

An emitter for an event with a single parameter passed to the listeners.

 interface IEventEmitterOfT<T>

Methods​

off​

Unregisters the given handler from this event.

off(value: (arg: T) => void): void
ParameterSummary
valueAll

The value originally passed into on , NOT the function returned by it.

on​

Registers to the event with the given handler

on(value: (arg: T) => void): () => void
ParameterSummary
valueAll

The function to call when the event occurs.

Returns​

A function which can be called to unregister the registered handler. This is usedful if the original function passed to this is not stored somewhere but unregistering of the event needs to be done.