Adaptive Media Player

AmpCore Docs

BaseFullscreenHandler

open class BaseFullscreenHandler : FullscreenHandler

AmpCore‘s base implementation of the FullscreenHandler

This can be inherited to add more functionalities

  • Clears up references to avoid memory leaks

    Declaration

    Swift

    public func clear()
  • Declaration

    Swift

    public var fullscreenManager: FullscreenManager!
  • Instance of AmpPlayer that is being managed for fullscreen

    Declaration

    Swift

    public var ampPlayer: AmpPlayer?
  • Creates a new instance of the BaseFullscreenHandler with unassigned properties

    Declaration

    Swift

    public init()
  • Handles the fullscreen response of an app rotation event

    By default BaseFullscreenHandler won’t switch fullscreen mode based on rotation

    Declaration

    Swift

    open func handleRotation()
  • Handles the UI changes to toggle the player viewer from inline view to fullscreen

    Declaration

    Swift

    open func enterFullscreen()
  • Handles the UI changes to toggle the player viewer from fullscreen to inline view

    Declaration

    Swift

    open func exitFullscreen()