Skip to main content

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);
ParameterTypeDescription
strTypestring
callbackEventCallback1

Source:Event/EventDispatcher.cs (line 75)

AddEventListener(string, EventCallback0)​

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

Source:Event/EventDispatcher.cs (line 35)

AddEventListener(string, EventCallback1)​

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

Source:Event/EventDispatcher.cs (line 25)

BroadcastEvent(string, object)​

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

Source:Event/EventDispatcher.cs (line 369)

BubbleEvent(string, object)​

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

Source:Event/EventDispatcher.cs (line 358)

DispatchEvent(EventContext)​

public bool DispatchEvent(EventContext context);
ParameterTypeDescription
contextEventContext

Source:Event/EventDispatcher.cs (line 254)

DispatchEvent(string)​

public bool DispatchEvent(string strType);
ParameterTypeDescription
strTypestring

Source:Event/EventDispatcher.cs (line 182)

DispatchEvent(string, object)​

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

Source:Event/EventDispatcher.cs (line 193)

DispatchEvent(string, object, object)​

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

Source:Event/EventDispatcher.cs (line 198)

RemoveCapture(string, EventCallback1)​

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

Source:Event/EventDispatcher.cs (line 85)

RemoveEventListener(string, EventCallback0)​

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

Source:Event/EventDispatcher.cs (line 60)

RemoveEventListener(string, EventCallback1)​

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

Source:Event/EventDispatcher.cs (line 45)

RemoveEventListeners()​

public void RemoveEventListeners();

Source:Event/EventDispatcher.cs (line 98)

RemoveEventListeners(string)​

public void RemoveEventListeners(string strType);
ParameterTypeDescription
strTypestring

Source:Event/EventDispatcher.cs (line 107)

hasEventListeners(string)​

public bool hasEventListeners(string strType);
ParameterTypeDescription
strTypestring

Source:Event/EventDispatcher.cs (line 130)

isDispatching(string)​

public bool isDispatching(string strType);
ParameterTypeDescription
strTypestring

Source:Event/EventDispatcher.cs (line 144)