EventDispatcher

open class EventDispatcher : EventDispatcherConvertible

The EventDispatcher interface is in implementation which supports the DOM Event Model.

  • Creates a new event dispatcher.

    Declaration

    Swift

    public init()
  • Creates a new event dispatcher to proxy target.

    Declaration

    Swift

    public init(target: AnyObject)
  • Registers the event listeners on the event target.

    Declaration

    Swift

    public func addEventListener(_ type: Event.Name, selector: Selector, observer: AnyObject? = nil, useCapture: Bool = false)
  • Unregister the event listeners on the event target.

    Declaration

    Swift

    public func removeEventListener(_ type: Event.Name, selector: Selector, observer: AnyObject? = nil, useCapture: Bool = false)
  • Dispatches the events into the implementations event model.

    Declaration

    Swift

    open func dispatch(event: Event)
  • Dispatches the events into the implementations event model.

    Declaration

    Swift

    public func dispatch(_ type: Event.Name, bubbles: Bool, data: Any?)