BMPFullscreenHandler
Objective-C
@protocol BMPFullscreenHandler <NSObject>
Swift
protocol FullscreenHandler : NSObjectProtocol
A BMPFullscreenHandler implementation can be set on a BMPBitmovinPlayerView using its fullscreenHandler property. A BMPFullscreenHandler 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 YES if the UI is in fullscreen, otherwise NO.
Declaration
Objective-C
@property (nonatomic, readonly, getter=isFullscreen) BOOL fullscreen;
Swift
var isFullscreen: Bool { get }
-
Is called when the UI want’s to enter fullscreen. This can be the result of either calling enterFullscreen on a BMPBitmovinPlayerView or tapping the fullscreen button in Bitmovin’s default UI. When a call to onFullscreenRequested was successful, BMPFullscreenHandler#isFullscreen must return YES after the method returned.
Declaration
Objective-C
- (void)onFullscreenRequested;
Swift
func onFullscreenRequested()
-
Is called when the UI want’s to exit fullscreen. This can be the result of either calling exitFullscreen on a BMPBitmovinPlayerView or tapping the fullscreen button in Bitmovin’s default UI. When a call to onFullscreenExitRequested was successful, BMPFullscreenHandler#isFullscreen must return NO after the method returned.
Declaration
Objective-C
- (void)onFullscreenExitRequested;
Swift
func onFullscreenExitRequested()