Decoder events

Constructor

new ()

Inherited Variables

Defined by EventSignal

read onlytype:E

Instace members

Inherited Methods

Defined by EventSignal1

after ():SimpleEventSignal1<E, R>

Triggered after the signal

around ():SimpleEventSignal1<E, R>

Triggered after 'before' and after the 'signal'

before ():SimpleEventSignal1<E, R>

Triggered before the signal

dispatch (result:R):Void

Trigger the signal to execute any registered callback functions

Parameters:

result

The result object to pass to listener callback functions

hasListener (cb:R ‑> Void):Bool

Check if the callback is already registered to this signal

Parameters:

cb

The callback function to check

Returns:

true if the callback function is registered to this signal

listen (cb:R ‑> Void):Void

Register a callback to execute if the signal is dispatched

Parameters:

cb

The callback function to execute

observe (cb:Void ‑> Void):Void

Register a callback to execute if the signal is dispatched

Parameters:

cb

The callback function to register

once (cb:R ‑> Void):Void

Registers a callback to execute if the signal is dispatched Upon dispatch, the callback will automatically be unlistened

Parameters:

cb

The callback function to execute once

unlisten (cb:R ‑> Void):Void

Unregister the callback from this signal

Parameters:

cb

The callback function to unregister

unobserve (cb:Void ‑> Void):Void

Unregister the callback from this signal

Parameters:

cb

The callback function to unregister