Airplay_Objc
@objc(THEOplayerAirplay)
public protocol Airplay_ObjcThe AirPlay API.
- 
                  
                  Whether the player is casting. DeclarationSwift var casting: Bool { get }
- 
                  
                  The state of the casting process. DeclarationSwift var state: PlayerCastState { get }
- 
                  
                  Start a casting session with the player’s source. DeclarationSwift func start()
- 
                  
                  Stop the active casting session. DeclarationSwift func stop()
- 
                  
                  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: AirPlayEventTypes.STATE_CHANGE, listener: handleAirplayEvent)DeclarationSwift @discardableResult func addEventListener(type: String, listener: @escaping (AirPlayEvent) -> ()) -> 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: AirPlayEventTypes.STATE_CHANGE, listener: eventListener)DeclarationSwift func removeEventListener(type: String, listener: EventListener)ParameterstypeEvent type of the removed event listener. listenerEventListener object that has been return on addEventListener. 
 Airplay_Objc Protocol Reference
      Airplay_Objc Protocol Reference