Util.addGlobalEventListener

Adds the specified function to the list of functions to be called when an event of type event_type occurs.

class Util
static
uint
addGlobalEventListener

Parameters

listener GSignalEmissionHook

the listener to notify

eventType string

the type of event for which notification is requested

Return Value

Type: uint

added event listener id, or 0 on failure.

Meta