eDriven Framework API
AddEventListener Method (eventType, handler, phases, priority)
Namespaces ► eDriven.Core.Events ► LazyEventDispatcher ► AddEventListener(String, EventHandler, EventPhase, Int32)
eDriven Framework API
Adds the event listener
Declaration Syntax

C# | Visual Basic | Visual C++

    public void AddEventListener(
    	string eventType,
    	EventHandler handler,
    	EventPhase phases,
    	int priority
    )

    Public Sub AddEventListener ( _
    	eventType As String, _
    	handler As EventHandler, _
    	phases As EventPhase, _
    	priority As Integer _
    )

    public:
    virtual void AddEventListener(
    	String^ eventType,
    	EventHandler^ handler,
    	EventPhase phases,
    	int priority
    ) sealed

Parameters

eventType (String)
  Event type

handler (EventHandler)
  Event handler

phases (EventPhase)
  Event bubbling phases that we listen to

priority (Int32)
  Event priority

Assembly: eDriven.Core (Module: eDriven.Core) Version: 2.0.1.0 (2.0.1.0)