commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADMediaView.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2019 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <GoogleMobileAds/GADMediaContent.h> |
|
9 |
#import <UIKit/UIKit.h> |
|
10 |
|
|
11 |
/// Displays native ad media content. |
|
12 |
/// |
|
13 |
/// To display media content in GADNativeAdView instances, add a GADMediaView subview, |
|
14 |
/// assign the native ad view's mediaView property, and set the native ad's mediaContent property to |
|
15 |
/// the media view. |
|
16 |
/// |
|
17 |
/// If the native ad contains video content, the media view displays the video content. |
|
18 |
/// |
|
19 |
/// If the native ad doesn't have video content and image loading is enabled, the media view |
|
20 |
/// displays the first image from the native ad's |images| property. |
|
21 |
/// |
|
22 |
/// If the native ad doesn't have video content and image loading is disabled, the media view is |
|
23 |
/// empty. |
|
24 |
@interface GADMediaView : UIView |
|
25 |
|
|
26 |
/// The media content displayed in the media view. |
|
27 |
@property(nonatomic, nullable) GADMediaContent *mediaContent; |
|
28 |
|
|
29 |
@end |