Skip to main content

alphaTab.IEventEmitter

An emitter for an event without any value passed to the listeners.

 interface IEventEmitter

Methods​

off​

Unregisters the given handler from this event.

off(value: () => 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: () => 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.