Skip to main content

EventListener

Namespace:FairyGUI
Source:Assets/Scripts/Event/EventListener.cs (line 10)

public class EventListener

Constructors​

EventListener(EventDispatcher, string)​

public EventListener(EventDispatcher owner, string type);
ParameterTypeDescription
ownerEventDispatcher
typestring

Source:Event/EventListener.cs (line 15)

Methods​

Add(EventCallback0)​

public void Add(EventCallback0 callback);
ParameterTypeDescription
callbackEventCallback0

Source:Event/EventListener.cs (line 70)

Add(EventCallback1)​

public void Add(EventCallback1 callback);
ParameterTypeDescription
callbackEventCallback1

Source:Event/EventListener.cs (line 51)

Add(LuaFunction, GComponent)​

public void Add(LuaFunction func, GComponent self);

Compilation conditions:FAIRYGUI_TOLUA

ParameterTypeDescription
funcLuaFunction
selfGComponent

Source:Event/EventListener.cs (line 130)

Add(LuaFunction, LuaTable)​

public void Add(LuaFunction func, LuaTable self);

Compilation conditions:FAIRYGUI_TOLUA

ParameterTypeDescription
funcLuaFunction
selfLuaTable

Source:Event/EventListener.cs (line 120)

AddCapture(EventCallback1)​

public void AddCapture(EventCallback1 callback);
ParameterTypeDescription
callbackEventCallback1

Source:Event/EventListener.cs (line 33)

BroadcastCall()​

public bool BroadcastCall();

Source:Event/EventListener.cs (line 262)

BroadcastCall(object)​

public bool BroadcastCall(object data);
ParameterTypeDescription
dataobject

Source:Event/EventListener.cs (line 253)

BubbleCall()​

public bool BubbleCall();

Source:Event/EventListener.cs (line 243)

BubbleCall(object)​

public bool BubbleCall(object data);
ParameterTypeDescription
dataobject

Source:Event/EventListener.cs (line 234)

Call()​

public bool Call();

Source:Event/EventListener.cs (line 214)

Call(object)​

public bool Call(object data);
ParameterTypeDescription
dataobject

Source:Event/EventListener.cs (line 224)

Clear()​

public void Clear();

Source:Event/EventListener.cs (line 205)

Remove(EventCallback0)​

public void Remove(EventCallback0 callback);
ParameterTypeDescription
callbackEventCallback0

Source:Event/EventListener.cs (line 82)

Remove(EventCallback1)​

public void Remove(EventCallback1 callback);
ParameterTypeDescription
callbackEventCallback1

Source:Event/EventListener.cs (line 60)

Remove(LuaFunction, GComponent)​

public void Remove(LuaFunction func, GComponent self);

Compilation conditions:FAIRYGUI_TOLUA

ParameterTypeDescription
funcLuaFunction
selfGComponent

Source:Event/EventListener.cs (line 150)

Remove(LuaFunction, LuaTable)​

public void Remove(LuaFunction func, LuaTable self);

Compilation conditions:FAIRYGUI_TOLUA

ParameterTypeDescription
funcLuaFunction
selfLuaTable

Source:Event/EventListener.cs (line 140)

RemoveCapture(EventCallback1)​

public void RemoveCapture(EventCallback1 callback);
ParameterTypeDescription
callbackEventCallback1

Source:Event/EventListener.cs (line 42)

Set(EventCallback0)​

public void Set(EventCallback0 callback);
ParameterTypeDescription
callbackEventCallback0

Source:Event/EventListener.cs (line 105)

Set(EventCallback1)​

public void Set(EventCallback1 callback);
ParameterTypeDescription
callbackEventCallback1

Source:Event/EventListener.cs (line 93)

Set(LuaFunction, GComponent)​

public void Set(LuaFunction func, GComponent self);

Compilation conditions:FAIRYGUI_TOLUA

ParameterTypeDescription
funcLuaFunction
selfGComponent

Source:Event/EventListener.cs (line 172)

Set(LuaFunction, LuaTable)​

public void Set(LuaFunction func, LuaTable self);

Compilation conditions:FAIRYGUI_TOLUA

ParameterTypeDescription
funcLuaFunction
selfLuaTable

Source:Event/EventListener.cs (line 160)

Properties​

isDispatching​

public bool isDispatching { get; }

Source:Event/EventListener.cs (line 194)

isEmpty​

public bool isEmpty { get; }

Source:Event/EventListener.cs (line 183)

type​

public string type { get; }

Source:Event/EventListener.cs (line 24)