FullscreenManager
public protocol FullscreenManager
This is the protocol to create a custom implementation of fullscreen handling management
-
Flag that determines if the player is in fullscreen mode of inline
Declaration
Swift
var isFullscreen: Bool { get set }
-
Current view of the player
Declaration
Swift
var videoView: UIView? { get set }
-
FullscreenMode
that handles if the toggling of fullscreen requires user interactionDeclaration
Swift
var mode: String { get set }
-
Switches between fullscreen and inline view, according to the current stated
Declaration
Swift
func toggle()
-
Sets the instance of the UI handler for the manager
Declaration
Swift
func setFullscreenHandler(handler: FullscreenHandler?)
-
Handles the setup for swiftching to fullscreen
Don’t add UI changes to this function, although technically possible they belong to
enterFullscreen()
Declaration
Swift
func enterFullscreen()
-
Handles the setup for swiftching to inline view
Don’t add UI changes to this function, although technically possible they belong to
exitFullscreen()
Declaration
Swift
func exitFullscreen()
-
Handles the setup for toggling fullscreen on an app rotation event
Don’t add UI changes to this function, although technically possible they belong to
handleRotation()
Declaration
Swift
func handleRotation()