GADMediaContent

@interface GADMediaContent : NSObject

Provides media content information. Interact with instances of this class on the main queue only.

  • Media content aspect ratio (width/height). The value is 0 when there’s no media content or the media content aspect ratio is unknown.

    Declaration

    Swift

    var aspectRatio: CGFloat { get }

    Objective-C

    @property (readonly, nonatomic) CGFloat aspectRatio;
  • The main image to be displayed when the media content doesn’t contain video.

    Declaration

    Swift

    var mainImage: UIImage? { get set }

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) UIImage *mainImage;
  • Controls the media content’s video.

    Declaration

    Swift

    var videoController: GADVideoController { get }

    Objective-C

    @property (readonly, nonatomic, nonnull) GADVideoController *videoController;
  • Indicates whether the media content has video content.

    Declaration

    Swift

    var hasVideoContent: Bool { get }

    Objective-C

    @property (readonly, nonatomic) BOOL hasVideoContent;