Interface IEventHandler
Interface for class capable of handling events.
Namespace: UnityEngine.UIElements
Syntax
public interface IEventHandler
Methods
HandleEvent(EventBase)
Handle an event.
Declaration
void HandleEvent(EventBase evt)
Parameters
Type | Name | Description |
---|---|---|
EventBase | evt | The event to handle. |
HasBubbleUpHandlers()
Returns true if event handlers for the event propagation BubbleUp phase, have been attached on this object.
Declaration
bool HasBubbleUpHandlers()
Returns
Type | Description |
---|---|
Boolean | True if object has event handlers for the BubbleUp phase. |
HasTrickleDownHandlers()
Returns true if event handlers, for the event propagation TrickleDown phase, are attached to this object.
Declaration
bool HasTrickleDownHandlers()
Returns
Type | Description |
---|---|
Boolean | True if the object already has event handlers for the TrickleDown phase. |
SendEvent(EventBase)
Sends an event to the event handler.
Declaration
void SendEvent(EventBase e)
Parameters
Type | Name | Description |
---|---|---|
EventBase | e | The event to send. |