EventDispatcherProtocol_Objc
@objc(THEOplayerEventDispatcherProtocol)
public protocol EventDispatcherProtocol_ObjcClasses that comform to this protocol can add and remove event listeners.
- 
                  
                  Adds the given event listener of the given type. Remark When attaching a listener on the wrong object the application will crash.Example: let eventListener = theoplayer.addEventListener(type: PlayerEventTypes.PLAY, listener: handlePlayEvent)DeclarationSwift func addEventListener_Objc(type: String, listener: @escaping (EventProtocol) -> ()) -> EventListenerParameterstypeEvent type of the added event listener. listenerClosure called when event is dispatched. Return ValueEventListener that can be removed. 
- 
                  
                  Removes the given event listener of the given type. Example: theoplayer.removeEventListener(type: PlayerEventTypes.PLAY, listener: eventListener)DeclarationSwift func removeEventListener_Objc(type: String, listener: EventListener)ParameterstypeEvent type of the removed event listener. listenerEventListener object that has been return on addEventListener. 
 EventDispatcherProtocol_Objc Protocol Reference
      EventDispatcherProtocol_Objc Protocol Reference