EventDispatcher
Namespace:FairyGUI
Source:Assets/Scripts/Event/EventDispatcher.cs (line 12)
public class EventDispatcher : IEventDispatcher
Interfaces:IEventDispatcher
Constructors
EventDispatcher()
public EventDispatcher();
Source:Event/EventDispatcher.cs (line 16)
Methods
AddCapture(string, EventCallback1)
public void AddCapture(string strType, EventCallback1 callback);
| Parameter | Type | Description |
|---|---|---|
strType | string | |
callback | EventCallback1 |
Source:Event/EventDispatcher.cs (line 75)
AddEventListener(string, EventCallback0)
public void AddEventListener(string strType, EventCallback0 callback);
| Parameter | Type | Description |
|---|---|---|
strType | string | |
callback | EventCallback0 |
Source:Event/EventDispatcher.cs (line 35)
AddEventListener(string, EventCallback1)
public void AddEventListener(string strType, EventCallback1 callback);
| Parameter | Type | Description |
|---|---|---|
strType | string | |
callback | EventCallback1 |
Source:Event/EventDispatcher.cs (line 25)
BroadcastEvent(string, object)
public bool BroadcastEvent(string strType, object data);
| Parameter | Type | Description |
|---|---|---|
strType | string | |
data | object |
Source:Event/EventDispatcher.cs (line 369)
BubbleEvent(string, object)
public bool BubbleEvent(string strType, object data);
| Parameter | Type | Description |
|---|---|---|
strType | string | |
data | object |
Source:Event/EventDispatcher.cs (line 358)
DispatchEvent(EventContext)
public bool DispatchEvent(EventContext context);
| Parameter | Type | Description |
|---|---|---|
context | EventContext |
Source:Event/EventDispatcher.cs (line 254)
DispatchEvent(string)
public bool DispatchEvent(string strType);
| Parameter | Type | Description |
|---|---|---|
strType | string |
Source:Event/EventDispatcher.cs (line 182)
DispatchEvent(string, object)
public bool DispatchEvent(string strType, object data);
| Parameter | Type | Description |
|---|---|---|
strType | string | |
data | object |
Source:Event/EventDispatcher.cs (line 193)
DispatchEvent(string, object, object)
public bool DispatchEvent(string strType, object data, object initiator);
| Parameter | Type | Description |
|---|---|---|
strType | string | |
data | object | |
initiator | object |
Source:Event/EventDispatcher.cs (line 198)
RemoveCapture(string, EventCallback1)
public void RemoveCapture(string strType, EventCallback1 callback);
| Parameter | Type | Description |
|---|---|---|
strType | string | |
callback | EventCallback1 |
Source:Event/EventDispatcher.cs (line 85)
RemoveEventListener(string, EventCallback0)
public void RemoveEventListener(string strType, EventCallback0 callback);
| Parameter | Type | Description |
|---|---|---|
strType | string | |
callback | EventCallback0 |
Source:Event/EventDispatcher.cs (line 60)
RemoveEventListener(string, EventCallback1)
public void RemoveEventListener(string strType, EventCallback1 callback);
| Parameter | Type | Description |
|---|---|---|
strType | string | |
callback | EventCallback1 |
Source:Event/EventDispatcher.cs (line 45)
RemoveEventListeners()
public void RemoveEventListeners();
Source:Event/EventDispatcher.cs (line 98)
RemoveEventListeners(string)
public void RemoveEventListeners(string strType);
| Parameter | Type | Description |
|---|---|---|
strType | string |
Source:Event/EventDispatcher.cs (line 107)
hasEventListeners(string)
public bool hasEventListeners(string strType);
| Parameter | Type | Description |
|---|---|---|
strType | string |
Source:Event/EventDispatcher.cs (line 130)
isDispatching(string)
public bool isDispatching(string strType);
| Parameter | Type | Description |
|---|---|---|
strType | string |
Source:Event/EventDispatcher.cs (line 144)