- 
                  
                  The delegate defining behavior for background playback DeclarationSwift public var backgroundPlaybackDelegate: BackgroundPlaybackDelegate? { get set }
- 
                  
                  Create a new instance of THEOplayer with a frame. DeclarationSwift public init(with frame: CGRect? = nil, configuration: THEOplayerConfiguration? = nil)ParametersframeThe frame rectangle, which describes the THEOplayer view’s location and size in its superview’s coordinate system, defaults to nil. configurationA configuration for the new THEOplayer, defaults to nil. 
- 
                  
                  THEOplayer’s Version. Remark Example:"2.77.0"DeclarationSwift public static var version: String { get }
- 
                  
                  The frame rectangle, which describes the THEOplayer view’s location and size in its superview’s coordinate system. DeclarationSwift public var frame: CGRect { get set }
- 
                  
                  The bounds rectangle, which describes the THEOplayer view’s location and size in its own coordinate system. DeclarationSwift public var bounds: CGRect { get set }
- 
                  
                  The center of the THEOplayer view’s frame. DeclarationSwift public var center: CGPoint { get set }
- 
                  
                  An integer bit mask that determines how the THEOplayer view resizes itself when its superview’s bounds change. DeclarationSwift public var autoresizingMask: UIView.AutoresizingMask { get set }
- 
                  
                  Returns the height of the video in pixels for the current quality. DeclarationSwift public var videoHeight: Int { get }
- 
                  
                  Returns the width of the video in pixels for the current quality. DeclarationSwift public var videoWidth: Int { get }
- 
                  
                  Returns the current size and position of the video image as displayed within the receiver’s bounds. Remark This property is key-value observable.DeclarationSwift @objc dynamic public private(set) var videoRect: CGRect { get }
- 
                  
                  Enables or disables the transition animation when resizing the player. Defaults to true.DeclarationSwift public var resizeTransitionEnabled: Bool { get set }
- 
                  
                  Allows you to modify the player’s ABR behavior. See documentation for ABRConfigurationto see how this is done.DeclarationSwift public var abr: ABRConfiguration { get set }
- 
                  
                  Specifies how to handle the aspect ratio of the content. DeclarationSwift public var aspectRatio: AspectRatio { get set }
- 
                  
                  The network status of the player which can be used to monitor the network related errors. DeclarationSwift public var network: Network { get }
- 
                  
                  The list of Text Tracks. DeclarationSwift public var textTracks: TextTrackList { get }
- 
                  
                  The list of Audio Tracks. DeclarationSwift public var audioTracks: AudioTrackList { get }
- 
                  
                  The list of Video Tracks. DeclarationSwift public var videoTracks: VideoTrackList { get }
- 
                  
                  The length of the currently loaded video, in seconds. DeclarationSwift public var duration: Double? { get }
- 
                  
                  Sets or returns if the video should automatically start playing. Remark - If you set autoplay to true, this will set preload to ‘auto’.
- Preload will be back to the previous state if you set autoplay back to false.
- If you want to use autoplay, you should not modify the preload or the autoplay won’t work.
 DeclarationSwift public var autoplay: Bool { get set }
- 
                  
                  Sets or returns the current source of the video. Remark - After invoking the setter, the player sets the provided playback source and applies the provided parameters in the source description.
- The source description is an object that should be constructed by the user and which should implement the SourceDescription protocol.
 DeclarationSwift public var source: SourceDescription? { get set }
- 
                  
                  Returns the current source URL of the video. DeclarationSwift public var src: String? { get }
- 
                  
                  Sets or returns the volume of the video. DeclarationSwift public var volume: Float { get set }
- 
                  
                  Sets or returns whether the audio output of the video is muted. DeclarationSwift public var muted: Bool { get set }
- 
                  
                  Return whether the video is seeking. DeclarationSwift public var seeking: Bool { get }
- 
                  
                  Returns whether the video is paused. DeclarationSwift public var paused: Bool { get }
- 
                  
                  Returns whether the video has ended. DeclarationSwift public var ended: Bool { get }
- 
                  
                  Prevents the display from sleeping during video playback. Defaults to true. DeclarationSwift public var preventsDisplaySleepDuringVideoPlayback: Bool { get set }
- 
                  
                  Whether to allow the player to playback externally (Airplay). - Remark: - Default is set to true - This is not supported for THEOlive sources. DeclarationSwift public var allowsExternalPlayback: Bool { get set }
- 
                  
                  Returns current playback rate of the player. Remark 1 referring to normal speed.DeclarationSwift public var playbackRate: Double { get set }
- 
                  
                  Returns the Metricsdata.DeclarationSwift @available(*, deprecated, message: "With the next major release the type will change from `Any?` to `Metrics`.") public var metrics: Any? { get }
- 
                  
                  The metrics API. DeclarationSwift @available(*, deprecated, message: "With the next major release this API will be renamed to `metrics`.") public var playerMetrics: Metrics { get }
- 
                  
                  Sets or returns the presentationMode of the player. Remark - Default is set to ‘inline’.
- For all possibilities, see PresentationMode.
 DeclarationSwift public var presentationMode: PresentationMode { get set }
- 
                  
                  Returns the readystate of the player. Remark - Default is set to HAVE_NOTHING.
- For all possibilities, see ReadyState.
 DeclarationSwift public var readyState: ReadyState { get }
- 
                  
                  Returns the last encountered player error. DeclarationSwift public var error: String? { get }
- 
                  
                  Returns the unique ID of the player DeclarationSwift public var uid: Int { get }
- 
                  
                  The current playback position of the video, in seconds. Setting it allows to change the playback position. DeclarationSwift public var currentTime: Double { get set }
- 
                  
                  Returns the current playback position of the media, as a timestamp. Remark Returns nil when the manifest doesn’t specify the currentProgramDateTime.DeclarationSwift public var currentProgramDateTime: Date? { get }
- 
                  
                  Sets whether THEOplayer automatically manages the AVAudioSession.Remark - THEOPlayer uses playbackas default value for theAVAudioSession.Category.
- THEOPlayer uses moviePlaybackas default value for theAVAudioSession.Mode.
 DeclarationSwift public static var automaticallyManageAudioSession: Bool { get set }
- THEOPlayer uses 
- 
                  
                  After invoking this method, the player starts playback. DeclarationSwift public func play()
- 
                  
                  After invoking this method, the player pauses playback. DeclarationSwift public func pause()
- 
                  
                  After invoking this method, the player stops playback completely and unloads all loaded resources. - Remark: - If the operation completes, the success flag is true and the error is nil. - If the operation fails, the success flag is false and the error indicates the problem. - Parameters: - completionHandler: An optional closure to invoke when operation completes or fails, defaults to nil. The closure takes two optional arguments: A success flag and an error.DeclarationSwift public func stop(completionHandler: ((Bool?, Error?) -> Void)? = nil)
- 
                  
                  Adds the given event listener of the given PlayerEventType. Remark When attaching a listener on the wrong object the application will crash. DeclarationSwift public func addEventListener<E>(type: EventType<E>, listener: @escaping (E) -> ()) -> EventListener where E : EventProtocolParameterstypePlayerEventTypeof the added event listener.listenerClosure called when event is dispatched. Return ValueEventListener that can be removed. 
- 
                  
                  Removes the given event listener of the given PlayerEventType. DeclarationSwift public func removeEventListener<E>(type: EventType<E>, listener: EventListener) where E : EventProtocolParameterstypePlayerEventTypeof the removed event listener.listenerEventListener object that has been returned on addEventListener. 
- 
                  
                  Sets the current playback position in the video. DeclarationSwift public func setCurrentTime(_ newValue: Double, completionHandler: ((Any?, Error?) -> Swift.Void)? = nil)ParametersnewValueThe new playback position, in seconds. completionHandlerA closure to invoke when operation completes or fails, defaults to nil. 
- 
                  
                  Sets the current ProgramDateTime of the player. DeclarationSwift public func setCurrentProgramDateTime(_ newValue: Date, completionHandler: ((Any?, Error?) -> Swift.Void)? = nil)ParametersnewValueThe new ProgramDateTime. completionHandlerA closure to invoke when operation completes or fails, defaults to nil. 
- 
                  
                  Adds the THEOplayer view to the end of the parameter view’s list of subviews. DeclarationSwift public func addAsSubview(of view: UIView)ParametersviewThe view on which the THEOplayer view will be added as a subview. 
- 
                  
                  Inserts the THEOplayer view at the specified index of the parameter view’s list of subviews. DeclarationSwift public func insertAsSubview(of view: UIView, at: Int)ParametersviewThe view on which the THEOplayer view will be added as a subview. atThe index in the array of the subviews property at which to insert the THEOplayer view. Subview indices start at 0 and cannot be greater than the number of subviews. 
- 
                  
                  Inserts the THEOplayer view below another view in the parameter view’s hierarchy. DeclarationSwift public func insertAsSubview(of view: UIView, belowSubview siblingSubview: UIView)ParametersviewThe view on which the THEOplayer view will be added as a subview. siblingSubviewThe sibling view that will be above the THEOplayer view. 
- 
                  
                  Inserts the THEOplayer view above another view in the parameter view’s hierarchy. DeclarationSwift public func insertAsSubview(of view: UIView, aboveSubview siblingSubview: UIView)ParametersviewThe view on which the THEOplayer view will be added as a subview. siblingSubviewThe sibling view that will be behind the inserted THEOplayer view. 
- 
                  
                  Returns a Boolean value indicating whether THEOplayer is contained in the given array of UIview. Remark Example: self.theoplayer.isContained(in: self.view.subviews)DeclarationSwift public func isContained(in views: [UIView]) -> BoolParametersviewsThe array of views in which to search for THEOplayer. 
- 
                  
                  Register a content protection integration Remark Remark: - This function allows for registering a ContentProtectionIntegrationFactoryfor a specific integrationId and keySystem.
- If a source is
set with the DRMConfiguration.integrationproperty set to this id, on a platform where the player will use the keySystem that corresponds with the givenKeySystemId, thisContentProtectionIntegrationFactorywill be used to construct aContentProtectionIntegrationbased on theDRMConfiguration.
- This ContentProtectionIntegrationallows for altering licenseand certificate requests and responses.
 DeclarationSwift public static func registerContentProtectionIntegration(integrationId: String, keySystem: KeySystemId, integrationFactory: ContentProtectionIntegrationFactory)ParametersintegrationIdAn id of the integration. keySystemThe KeySystemIdfor which theContentProtectionIntegrationFactoryshould be used.integrationFactoryFactory that will construct a ContentProtectionIntegration.
- This function allows for registering a 
- 
                  
                  Add an Integrationto the THEOplayer instance .Remark For possible options, please check: https://docs.theoplayer.com/getting-started/01-sdks/03-ios/01-features.mdDeclarationSwift public func addIntegration(_ integration: Integration)
- 
                  
                  Removes an Integrationfrom the THEOplayer instance.DeclarationSwift public func removeIntegration(_ integration: Integration)
- 
                  
                  Removes all Integrations from the THEOplayer instance.DeclarationSwift public func removeAllIntegrations()
- 
                  
                  Returns all registered Integrations on the THEOplayer instanceDeclarationSwift public func getAllIntegrations() -> [Integration]
- 
                  
                  Returns the registered Integrationon the THEOplayer instance of the specified kind. Returns nil if not found.DeclarationSwift public func getIntegrationByKind(_ kind: IntegrationKind) -> Integration?
- 
                  
                  API to configure TextTrack styles (for subtitles) Remark Only available on the native pipeline.Sample usage var tts = self.theoplayer?.textTrackStyle tts?.backgroundColor = [TextTrackStyleRuleColor(UIColor.green)] // or theoplayer.textTrackStyle?.backgroundColor = [TextTrackStyleRuleColor(UIColor.green)] theoplayer.textTrackStyle?.fontColor = [TextTrackStyleRuleColor(UIColor.red)] theoplayer.textTrackStyle?.edgeStyle = [TextTrackStyleRuleString(TextTrackStyleEdgeStyle.raised)] theoplayer.textTrackStyle?.fontFamily = [TextTrackStyleRuleString("American Typewriter")] theoplayer.textTrackStyle?.fontSize = [TextTrackStyleRuleNumber(120)] //20% increase theoplayer.textTrackStyle?.marginTop = [TextTrackStyleRuleNumber(0)] // top theoplayer.textTrackStyle?.marginLeft = [TextTrackStyleRuleNumber(0)] // leftDeclarationSwift public var textTrackStyle: TextTrackStyle? { get set }
- 
                  
                  The Cast object helps you configure and control casting to external devices with THEOplayer. DeclarationSwift public var cast: Cast? { get }
- 
                  
                  The Fullscreenapi of theoplayer.DeclarationSwift var fullscreen: Fullscreen { get }
- 
                  
                  Attaches a gesture recognizer to THEOplayer. Remark Only available on iOS.DeclarationSwift public func addGestureRecognizer(_ gestureRecognizer: UIGestureRecognizer)
- 
                  
                  Detaches a gesture recognizer from THEOplayer. Remark Only available on iOS.DeclarationSwift public func removeGestureRecognizer(_ gestureRecognizer: UIGestureRecognizer)
- 
                  
                  List of the gesture recognizers attached to THEOplayer. Remark Only available on iOS.DeclarationSwift public var gestureRecognizers: [UIGestureRecognizer]? { get }
- 
                  
                  A PictureInPictureobject to configure Picture-In-Picture.DeclarationSwift var pip: PictureInPicture? { get set }
- 
                  
                  Whether the fullscreen mode is coupled to device orientation, defaults to false. When enabled, landscape mode will trigger fullscreen mode and portrait mode will trigger non-fullscreen mode. Remark Changes in the device orientation or fullscreen state will also trigger their coupled mode if enabled.DeclarationSwift var fullscreenOrientationCoupling: Bool { get set }
- 
                  
                  The Cache object to access the caching API. DeclarationSwift static var cache: Cache { get }
