FullscreenHandler
@objc(BMPFullscreenHandler)
public protocol FullscreenHandler : NSObjectProtocol
The FullscreenHandler implementation can be set on a PlayerView using its fullscreenHandler property.
The FullscreenHandler acts as a delegate for handling the fullscreen related behaviour of the player view.
-
Is called when the UI want’s to know the current fullscreen state of the UI. Must return true if the UI is in fullscreen, otherwise false.
Declaration
Swift
var isFullscreen: Bool { get } -
Is called when the UI want’s to enter fullscreen. This can be the result of either calling
enterFullscreenon aPlayerViewor tapping the fullscreen button in Bitmovin’s default UI. When a call toonFullscreenRequestedwas successful,FullscreenHandler#isFullscreenmust return true after the method returned.Declaration
Swift
func onFullscreenRequested() -
Is called when the UI want’s to exit fullscreen. This can be the result of either calling
exitFullscreenon aPlayerViewor tapping the fullscreen button in Bitmovin’s default UI. When a call toonFullscreenExitRequestedwas successful,FullscreenHandler#isFullscreenmust return false after the method returned.Declaration
Swift
func onFullscreenExitRequested()
FullscreenHandler Protocol Reference