FullscreenPresentationDelegate

@objc(THEOplayerFullscreenPresentationDelegate)
public protocol FullscreenPresentationDelegate

The fullscreen delegate which allows control over the presentation of the fullscreen view controller.

  • Method which gets called when the fullscreen view controller is ready to be presented.

    Remark

    The completion handler must be called in order to maintain player status. If the transition is animated, then call the completion after the animation is completed.

    Declaration

    Swift

    func present(viewController: FullscreenViewController, completion: @escaping () -> Void)

    Parameters

    viewController

    The fullscreen view controller of type FullscreenViewController.

    completion

    The completion handler which should be called when presentation is completed.

  • Method which gets called when the fullscreen view controller is ready to be dismissed.

    Remark

    The completion handler must be called in order to maintain player status. If the transition is animated, then call the completion after the animation is completed.

    Declaration

    Swift

    func dismiss(viewController: FullscreenViewController, completion: @escaping () -> Void)

    Parameters

    viewController

    The fullscreen view controller of type FullscreenViewController.

    completion

    The completion handler which should be called after dismissal is completed.