BMPUserInterfaceListener
Objective-C
@protocol BMPUserInterfaceListener <NSObject>
Swift
protocol UserInterfaceListener : NSObjectProtocol
Defines listener methods for all events available for the PlayerView. See the documentation of the single listener methods for further information.
-
Is called when the player enters fullscreen mode.
Declaration
Objective-C
- (void)onFullscreenEnter:(nonnull BMPFullscreenEnterEvent *)event view:(nonnull BMPPlayerView *)view;
Swift
nonisolated optional func onFullscreenEnter(_ event: BMPFullscreenEnterEvent, view: BMPPlayerView)
Parameters
event
An object holding specific event data.
view
The player view instance which is associated with the emitted event.
-
Is called when the player exits fullscreen mode.
Declaration
Objective-C
- (void)onFullscreenExit:(nonnull BMPFullscreenExitEvent *)event view:(nonnull BMPPlayerView *)view;
Swift
nonisolated optional func onFullscreenExit(_ event: BMPFullscreenExitEvent, view: BMPPlayerView)
Parameters
event
An object holding specific event data.
view
The player view instance which is associated with the emitted event.
-
Is called when a fullscreen handler has been set.
Declaration
Objective-C
- (void)onFullscreenEnabled:(nonnull BMPFullscreenEnabledEvent *)event view:(nonnull BMPPlayerView *)view;
Swift
nonisolated optional func onFullscreenEnabled(_ event: BMPFullscreenEnabledEvent, view: BMPPlayerView)
Parameters
event
An object holding specific event data.
view
The player view instance which is associated with the emitted event.
-
Is called when the current fullscreen handler was removed.
Declaration
Objective-C
- (void)onFullscreenDisabled:(nonnull BMPFullscreenDisabledEvent *)event view:(nonnull BMPPlayerView *)view;
Swift
nonisolated optional func onFullscreenDisabled(_ event: BMPFullscreenDisabledEvent, view: BMPPlayerView)
Parameters
event
An object holding specific event data.
view
The player view instance which is associated with the emitted event.
-
Fires when the UI controls are showing.
Declaration
Objective-C
- (void)onControlsShow:(nonnull BMPControlsShowEvent *)event view:(nonnull BMPPlayerView *)view;
Swift
nonisolated optional func onControlsShow(_ event: BMPControlsShowEvent, view: BMPPlayerView)
Parameters
event
An object holding specific event data.
view
The player view instance which is associated with the emitted event.
-
Fires when the UI controls are hiding.
Declaration
Objective-C
- (void)onControlsHide:(nonnull BMPControlsHideEvent *)event view:(nonnull BMPPlayerView *)view;
Swift
nonisolated optional func onControlsHide(_ event: BMPControlsHideEvent, view: BMPPlayerView)
Parameters
event
An object holding specific event data.
view
The player view instance which is associated with the emitted event.
-
Is called when the
PlayerView
is about to enter Picture in Picture mode.Declaration
Objective-C
- (void)onPictureInPictureEnter:(nonnull PictureInPictureEnterEvent *)event view:(nonnull BMPPlayerView *)view;
Swift
nonisolated optional func onPictureInPictureEnter(_ event: PictureInPictureEnterEvent, view: BMPPlayerView)
Parameters
event
An object holding specific event data.
view
The player view instance which is associated with the emitted event.
-
Is called when the
PlayerView
finished entering Picture in Picture mode.Declaration
Objective-C
- (void)onPictureInPictureEntered:(nonnull PictureInPictureEnteredEvent *)event view:(nonnull BMPPlayerView *)view;
Swift
nonisolated optional func onPictureInPictureEntered(_ event: PictureInPictureEnteredEvent, view: BMPPlayerView)
Parameters
event
An object holding specific event data.
view
The player view instance which is associated with the emitted event.
-
Is called when the
PlayerView
is about to exit Picture in Picture mode.Declaration
Objective-C
- (void)onPictureInPictureExit:(nonnull PictureInPictureExitEvent *)event view:(nonnull BMPPlayerView *)view;
Swift
nonisolated optional func onPictureInPictureExit(_ event: PictureInPictureExitEvent, view: BMPPlayerView)
Parameters
event
An object holding specific event data.
view
The player view instance which is associated with the emitted event.
-
Is called when the
PlayerView
finished exiting Picture in Picture mode.Declaration
Objective-C
- (void)onPictureInPictureExited:(nonnull PictureInPictureExitedEvent *)event view:(nonnull BMPPlayerView *)view;
Swift
nonisolated optional func onPictureInPictureExited(_ event: PictureInPictureExitedEvent, view: BMPPlayerView)
Parameters
event
An object holding specific event data.
view
The player view instance which is associated with the emitted event.
-
Is called when the
ScalingMode
of thePlayerView
changed.Declaration
Objective-C
- (void)onScalingModeChanged:(nonnull BMPScalingModeChangedEvent *)event view:(nonnull BMPPlayerView *)view;
Swift
nonisolated optional func onScalingModeChanged(_ event: BMPScalingModeChangedEvent, view: BMPPlayerView)
Parameters
event
An object holding specific event data.
view
The player view instance which is associated with the emitted event.
-
Is called when a
TimelineMarker
is entered.Declaration
Objective-C
- (void)onTimelineMarkerEnter:(nonnull BMPTimelineMarkerEnterEvent *)event view:(nonnull BMPPlayerView *)view;
Swift
nonisolated optional func onTimelineMarkerEnter(_ event: BMPTimelineMarkerEnterEvent, view: BMPPlayerView)
Parameters
event
An object holding specific event data.
view
The player view instance which is associated with the emitted event.
-
Is called when a
TimelineMarker
is exited.Declaration
Objective-C
- (void)onTimelineMarkerExit:(nonnull BMPTimelineMarkerExitEvent *)event view:(nonnull BMPPlayerView *)view;
Swift
nonisolated optional func onTimelineMarkerExit(_ event: BMPTimelineMarkerExitEvent, view: BMPPlayerView)
Parameters
event
An object holding specific event data.
view
The player view instance which is associated with the emitted event.