C# Class FairyGUI.EventDispatcher

Show file Open project: fairygui/FairyGUI-unity Class Usage Examples

Public Methods

Method Description
AddEventListener ( string strType, EventCallback0 callback ) : void

AddEventListener ( string strType, EventCallback1 callback ) : void

BroadcastEvent ( string strType, object data ) : bool

BubbleEvent ( string strType, object data ) : bool

DispatchEvent ( EventContext context ) : bool

DispatchEvent ( string strType ) : bool

DispatchEvent ( string strType, object data ) : bool

DispatchEvent ( string strType, object data, object initiator ) : bool
EventDispatcher ( ) : System
RemoveEventListener ( string strType, EventCallback0 callback ) : void

RemoveEventListener ( string strType, EventCallback1 callback ) : void

RemoveEventListeners ( ) : void

RemoveEventListeners ( string strType ) : void

Private Methods

Method Description
BubbleEvent ( string strType, object data, List addChain ) : bool

GetChainBridges ( string strType, List chain, bool bubble ) : void
GetChildEventBridges ( string strType, Container container, List bridges ) : void
GetChildEventBridges ( string strType, GComponent container, List bridges ) : void
GetEventBridge ( string strType ) : EventBridge
InternalDispatchEvent ( string strType, EventBridge bridge, object data, object initiator ) : bool
TryGetEventBridge ( string strType ) : EventBridge

Method Details

AddEventListener() public method

public AddEventListener ( string strType, EventCallback0 callback ) : void
strType string
callback EventCallback0
return void

AddEventListener() public method

public AddEventListener ( string strType, EventCallback1 callback ) : void
strType string
callback EventCallback1
return void

BroadcastEvent() public method

public BroadcastEvent ( string strType, object data ) : bool
strType string
data object
return bool

BubbleEvent() public method

public BubbleEvent ( string strType, object data ) : bool
strType string
data object
return bool

DispatchEvent() public method

public DispatchEvent ( EventContext context ) : bool
context EventContext
return bool

DispatchEvent() public method

public DispatchEvent ( string strType ) : bool
strType string
return bool

DispatchEvent() public method

public DispatchEvent ( string strType, object data ) : bool
strType string
data object
return bool

DispatchEvent() public method

public DispatchEvent ( string strType, object data, object initiator ) : bool
strType string
data object
initiator object
return bool

EventDispatcher() public method

public EventDispatcher ( ) : System
return System

RemoveEventListener() public method

public RemoveEventListener ( string strType, EventCallback0 callback ) : void
strType string
callback EventCallback0
return void

RemoveEventListener() public method

public RemoveEventListener ( string strType, EventCallback1 callback ) : void
strType string
callback EventCallback1
return void

RemoveEventListeners() public method

public RemoveEventListeners ( ) : void
return void

RemoveEventListeners() public method

public RemoveEventListeners ( string strType ) : void
strType string
return void