PictureInPictureConfig

@objcMembers
@objc(BMPPictureInPictureConfig)
public class PictureInPictureConfig : NSObject

Provides options to configure Picture in Picture playback.

  • Whether Picture in Picture feature is enabled or not. Default is false.

    Declaration

    Swift

    public var isEnabled: Bool
  • Defines whether the skip-backward and skip-forward buttons should be visible when Picture in Picture is active.

    Default is true.

    Declaration

    Swift

    @available(iOS 14.0, *)
    @available(tvOS, unavailable)
    public var showSkipControls: Bool { get set }
  • Defines whether Picture in Picture should start automatically when the app transitions to background.

    Does not have any affect when Picture in Picture is disabled.

    Default is false.

    Declaration

    Swift

    @available(iOS 14.2, *)
    @available(tvOS, unavailable)
    public var shouldEnterOnBackground: Bool { get set }