GoogleMobileAds (Beta) Framework Reference

GADPictureInPictureAdOptions


@interface GADPictureInPictureAdOptions : NSObject

Options for presenting a Picture-in-Picture (PiP) ad.

  • The current position of the PiP ad.

    Value is GADPictureInPictureAdPositionDefault until the ad is assigned a position.

    Declaration

    Swift

    var position: PictureInPictureAdPosition { get set }

    Objective-C

    @property (nonatomic) GADPictureInPictureAdPosition position;
  • The Picture-in-Picture ad’s presentation scope. Defaults to GADPictureInPictureAdPresentationScopeScreen.

    Declaration

    Swift

    var presentationScope: PictureInPictureAdPresentationScope { get set }

    Objective-C

    @property (nonatomic) GADPictureInPictureAdPresentationScope presentationScope;
  • The window scene where the Picture-in-Picture ad will be presented. Defaults to nil. If nil, the SDK automatically resolves the active window scene.

    Declaration

    Swift

    weak var windowScene: UIWindowScene? { get set }

    Objective-C

    @property (nonatomic, weak, nullable) UIWindowScene *windowScene;