GoogleMobileAds (Beta) Framework Reference

GADPictureInPictureAdPosition

enum GADPictureInPictureAdPosition : NSInteger {}

Options for the position of a Picture-in-Picture (PiP) ad.

  • Uses the SDK’s default ad position. Currently resolves to the ad’s last known position or the bottom-right corner if there is no last known position.

    Use GADPictureInPictureAdPositionDefault when you want the SDK to manage placement; use an explicit position when your layout depends on a specific, stable location.

    Declaration

    Swift

    case `default` = 0

    Objective-C

    GADPictureInPictureAdPositionDefault = 0
  • Bottom-right corner of the screen.

    Declaration

    Swift

    case bottomRight = 1

    Objective-C

    GADPictureInPictureAdPositionBottomRight = 1
  • Bottom-left corner of the screen.

    Declaration

    Swift

    case bottomLeft = 2

    Objective-C

    GADPictureInPictureAdPositionBottomLeft = 2
  • Top-left corner of the screen.

    Declaration

    Swift

    case topLeft = 3

    Objective-C

    GADPictureInPictureAdPositionTopLeft = 3
  • Top-right corner of the screen.

    Declaration

    Swift

    case topRight = 4

    Objective-C

    GADPictureInPictureAdPositionTopRight = 4