GenericUiEvent Class
The GenericUiEvent is the base event class for UI events that target a specific component, as identified in uiComponentId.
Extends
Methods
Name | Description | |
---|---|---|
constructor(): GenericUiEvent |
Inherited methods
Name | Inherited from | Description |
---|---|---|
addListener(listener: (args: GenericUiEventArgs) => void, scope?: any): () => void | BeUiEvent | Registers a Listener to be executed whenever this event is raised. |
addOnce(listener: (args: GenericUiEventArgs) => void, scope?: any): () => void | BeUiEvent | Registers a callback function to be executed only once when the event is raised. |
clear(): void | BeUiEvent | Clear all Listeners from this BeEvent. |
emit(args: GenericUiEventArgs): void | BeUiEvent | Raises event with single strongly typed argument. |
has(listener: (args: GenericUiEventArgs) => void, scope?: any): boolean | BeUiEvent | Determine whether this BeEvent has a specified listener registered. |
raiseEvent(...args: [args]): void | BeUiEvent | Raises the event by calling each registered listener with the supplied arguments. |
removeListener(listener: (args: GenericUiEventArgs) => void, scope?: any): boolean | BeUiEvent | Un-register a previously registered listener. |
Inherited properties
Name | Type | Inherited from | Description |
---|---|---|---|
numberOfListeners Accessor ReadOnly | number | BeUiEvent | The number of listeners currently subscribed to the event. |
Defined in
Last Updated: 20 June, 2023