BMPUserInterfaceListener

Objective-C

@protocol BMPUserInterfaceListener <NSObject>

Swift

protocol UserInterfaceListener : NSObjectProtocol

Defines listener methods for all events available for the BitmovinPlayerView. 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;

    Swift

    optional func onFullscreenEnter(_ event: FullscreenEnterEvent)

    Parameters

    event

    An object holding specific event data.

  • Is called when the player exits fullscreen mode.

    Declaration

    Objective-C

    - (void)onFullscreenExit:(nonnull BMPFullscreenExitEvent *)event;

    Swift

    optional func onFullscreenExit(_ event: FullscreenExitEvent)

    Parameters

    event

    An object holding specific event data.

  • Is called when a fullscreen handler has been set.

    Declaration

    Objective-C

    - (void)onFullscreenEnabled:(nonnull BMPFullscreenEnabledEvent *)event;

    Swift

    optional func onFullscreenEnabled(_ event: FullscreenEnabledEvent)

    Parameters

    event

    An object holding specific event data.

  • Is called when the current fullscreen handler was removed.

    Declaration

    Objective-C

    - (void)onFullscreenDisabled:(nonnull BMPFullscreenDisabledEvent *)event;

    Swift

    optional func onFullscreenDisabled(_ event: FullscreenDisabledEvent)

    Parameters

    event

    An object holding specific event data.

  • Fires when the UI controls are showing.

    Declaration

    Objective-C

    - (void)onControlsShow:(nonnull BMPControlsShowEvent *)event;

    Swift

    optional func onControlsShow(_ event: ControlsShowEvent)

    Parameters

    event

    An object holding specific event data.

  • Fires when the UI controls are hiding.

    Declaration

    Objective-C

    - (void)onControlsHide:(nonnull BMPControlsHideEvent *)event;

    Swift

    optional func onControlsHide(_ event: ControlsHideEvent)

    Parameters

    event

    An object holding specific event data.

  • Is called when the PlayerView is about to enter Picture in Picture mode.

    Declaration

    Objective-C

    - (void)onPictureInPictureEnter:(nonnull PictureInPictureEnterEvent *)event;

    Swift

    optional func onPictureInPictureEnter(_ event: PictureInPictureEnterEvent)

    Parameters

    event

    An object holding specific event data.

  • Is called when the PlayerView finished entering Picture in Picture mode.

    Declaration

    Objective-C

    - (void)onPictureInPictureEntered:(nonnull PictureInPictureEnteredEvent *)event;

    Swift

    optional func onPictureInPictureEntered(_ event: PictureInPictureEnteredEvent)

    Parameters

    event

    An object holding specific event data.

  • Is called when the PlayerView is about to exit Picture in Picture mode.

    Declaration

    Objective-C

    - (void)onPictureInPictureExit:(nonnull PictureInPictureExitEvent *)event;

    Swift

    optional func onPictureInPictureExit(_ event: PictureInPictureExitEvent)

    Parameters

    event

    An object holding specific event data.

  • Is called when the PlayerView finished exiting Picture in Picture mode.

    Declaration

    Objective-C

    - (void)onPictureInPictureExited:(nonnull PictureInPictureExitedEvent *)event;

    Swift

    optional func onPictureInPictureExited(_ event: PictureInPictureExitedEvent)

    Parameters

    event

    An object holding specific event data.

  • Is called when the ScalingMode of the PlayerView changed.

    Declaration

    Objective-C

    - (void)onScalingModeChanged:(nonnull BMPScalingModeChangedEvent *)event;

    Swift

    optional func onScalingModeChanged(_ event: BMPScalingModeChangedEvent)

    Parameters

    event

    An object holding specific event data.