IEventDispatcher
命名空间:FairyGUI
源码:Assets/Scripts/Event/IEventDispatcher.cs (行 9)
public interface IEventDispatcher
方法
AddEventListener(string, EventCallback0)
void AddEventListener(string strType, EventCallback0 callback);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
callback | EventCallback0 |
源码:Event/IEventDispatcher.cs (行 11)
AddEventListener(string, EventCallback1)
void AddEventListener(string strType, EventCallback1 callback);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
callback | EventCallback1 |
源码:Event/IEventDispatcher.cs (行 12)
DispatchEvent(EventContext)
bool DispatchEvent(EventContext context);
| 参数 | 类型 | 说明 |
|---|---|---|
context | EventContext |
源码:Event/IEventDispatcher.cs (行 15)
DispatchEvent(string)
bool DispatchEvent(string strType);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string |
源码:Event/IEventDispatcher.cs (行 16)
DispatchEvent(string, object)
bool DispatchEvent(string strType, object data);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
data | object |
源码:Event/IEventDispatcher.cs (行 17)
DispatchEvent(string, object, object)
bool DispatchEvent(string strType, object data, object initiator);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
data | object | |
initiator | object |
源码:Event/IEventDispatcher.cs (行 18)
RemoveEventListener(string, EventCallback0)
void RemoveEventListener(string strType, EventCallback0 callback);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
callback | EventCallback0 |
源码:Event/IEventDispatcher.cs (行 13)
RemoveEventListener(string, EventCallback1)
void RemoveEventListener(string strType, EventCallback1 callback);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
callback | EventCallback1 |
源码:Event/IEventDispatcher.cs (行 14)