EventDispatcherConvertible
public protocol EventDispatcherConvertible : AnyObject
The EventDispatcherConvertible interface is in implementation which supports the DOM Event Model.
-
Registers the event listeners on the event target.
Declaration
Swift
func addEventListener(_ type: Event.Name, selector: Selector, observer: AnyObject?, useCapture: Bool)
-
Unregister the event listeners on the event target.
Declaration
Swift
func removeEventListener(_ type: Event.Name, selector: Selector, observer: AnyObject?, useCapture: Bool)
-
Dispatches the events into the implementations event model.
Declaration
Swift
func dispatch(event: Event)
-
Dispatches the events into the implementations event model.
Declaration
Swift
func dispatch(_ type: Event.Name, bubbles: Bool, data: Any?)