new EventManager(uiProxy)
Creates an instance of EventManager.
Parameters:
| Name | Type | Description |
|---|---|---|
uiProxy |
olympe.uiapi.UIElement |
Extends
- olympe.ui.UIElement
Methods
-
<protected> offEvent(id, callbackList)
-
Removes a specific callback from a callback list.
Parameters:
Name Type Description idstring | olympe.df.Proxy.<string> ID of the callback to remove
callbackListolympe.ui.events.EventCallbackList callback list
-
<protected> onEvent(callback, id, priority, callbackList, offFunction)
-
Creates an
EventCallbackand add to a list of callbacks, inserting it according to its priority.Parameters:
Name Type Description callbackfunction the function to associate to the callback
idstring | undefined ID for this new callback
prioritynumber | undefined Priority for the new callback.
callbackListolympe.ui.events.EventCallbackList the list to add this callback to
offFunctionfunction Function to execute when the context is destroyed
Returns:
Id ID of the created callback
- Type
- string
-
<protected> registerOnEvent(event, eventsList)
-
Registers a list of callbacks to an Event.
Parameters:
Name Type Description eventolympe.df.Proxy.<olympe.ui.events.Event> | olympe.ui.events.Event eventsListolympe.ui.events.EventCallbackList
Olympe SDK