Adaptive Media Player

AmpCore Docs

FullscreenHandler

public protocol FullscreenHandler

This is the protocol to create a custom implementation of fullscreen handling

  • This property contains player that the handler is going to work over

    Declaration

    Swift

    var ampPlayer: AmpPlayer? { get set }
  • An instance that complies with the protocol FullscreenManager

    An instance of BaseFullscreenManager can be used, however

    Declaration

    Swift

    var fullscreenManager: FullscreenManager! { get set }
  • Handles the UI changes for switching to fullscreen

    Any animations, UI updates, etc. should be handled in this function

    Declaration

    Swift

    func enterFullscreen()
  • Handles the UI changes for switching to inline view

    Any animations, UI updates, etc. should be handled in this function

    Declaration

    Swift

    func exitFullscreen()
  • Handles the fullscreen response of an app rotation event

    Declaration

    Swift

    func handleRotation()
  • Clears references to avoid memory leaks

    Declaration

    Swift

    func clear()