EventDispatcher
public class EventDispatcher : NSObject, EventDispatcherProtocolRepresents an EventDispatcher which will be responsible for dispatching an event, once it occurs.
- 
                  
                  Adds an EventListenerfor a particular type of event to the player.DeclarationSwift public func addEventListener<E>(type: EventType<E>, listener: @escaping (E) -> ()) -> EventListener where E : EventProtocolParameterstypeThe EventTypeto listen for.listenerThe closure to be called when the event occurs. 
- 
                  
                  Removes an EventListenerfor a particular type of event of the player.DeclarationSwift public func removeEventListener<E>(type: EventType<E>, listener: EventListener) where E : EventProtocolParameterstypeThe EventTypeto be removed.listenerThe closure to be called when the event occurs. 
 EventDispatcher Class Reference
      EventDispatcher Class Reference