commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADMediaContent.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2019 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <GoogleMobileAds/GADVideoController.h> |
|
9 |
#import <UIKit/UIKit.h> |
|
10 |
|
|
11 |
/// Provides media content information. Interact with instances of this class on the main queue |
|
12 |
/// only. |
|
13 |
@interface GADMediaContent : NSObject |
|
14 |
|
|
15 |
/// Controls the media content's video. |
|
16 |
@property(nonatomic, readonly, nonnull) GADVideoController *videoController; |
|
17 |
|
|
18 |
/// Indicates whether the media content has video content. |
|
19 |
@property(nonatomic, readonly) BOOL hasVideoContent; |
|
20 |
|
|
21 |
/// Media content aspect ratio (width/height). The value is 0 when there's no media content or the |
|
22 |
/// media content aspect ratio is unknown. |
|
23 |
@property(nonatomic, readonly) CGFloat aspectRatio; |
|
24 |
|
|
25 |
/// The video's duration in seconds or 0 if there's no video or the duration is unknown. |
|
26 |
@property(nonatomic, readonly) NSTimeInterval duration; |
|
27 |
|
|
28 |
/// The video's current playback time in seconds or 0 if there's no video or the current playback |
|
29 |
/// time is unknown. |
|
30 |
@property(nonatomic, readonly) NSTimeInterval currentTime; |
|
31 |
|
|
32 |
@end |
|
33 |
|
|
34 |
@interface GADMediaContent (NativeAd) |
|
35 |
|
|
36 |
/// The main image to be displayed when the media content doesn't contain video. Only available to |
|
37 |
/// native ads. |
|
38 |
@property(nonatomic, nullable) UIImage *mainImage; |
|
39 |
|
|
40 |
@end |