Skip to main content

IEventDispatcher

Namespace:FairyGUI
Source:Assets/Scripts/Event/IEventDispatcher.cs (line 9)

public interface IEventDispatcher

Methods​

AddEventListener(string, EventCallback0)​

void AddEventListener(string strType, EventCallback0 callback);
ParameterTypeDescription
strTypestring
callbackEventCallback0

Source:Event/IEventDispatcher.cs (line 11)

AddEventListener(string, EventCallback1)​

void AddEventListener(string strType, EventCallback1 callback);
ParameterTypeDescription
strTypestring
callbackEventCallback1

Source:Event/IEventDispatcher.cs (line 12)

DispatchEvent(EventContext)​

bool DispatchEvent(EventContext context);
ParameterTypeDescription
contextEventContext

Source:Event/IEventDispatcher.cs (line 15)

DispatchEvent(string)​

bool DispatchEvent(string strType);
ParameterTypeDescription
strTypestring

Source:Event/IEventDispatcher.cs (line 16)

DispatchEvent(string, object)​

bool DispatchEvent(string strType, object data);
ParameterTypeDescription
strTypestring
dataobject

Source:Event/IEventDispatcher.cs (line 17)

DispatchEvent(string, object, object)​

bool DispatchEvent(string strType, object data, object initiator);
ParameterTypeDescription
strTypestring
dataobject
initiatorobject

Source:Event/IEventDispatcher.cs (line 18)

RemoveEventListener(string, EventCallback0)​

void RemoveEventListener(string strType, EventCallback0 callback);
ParameterTypeDescription
strTypestring
callbackEventCallback0

Source:Event/IEventDispatcher.cs (line 13)

RemoveEventListener(string, EventCallback1)​

void RemoveEventListener(string strType, EventCallback1 callback);
ParameterTypeDescription
strTypestring
callbackEventCallback1

Source:Event/IEventDispatcher.cs (line 14)