commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADVideoController.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2016 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
#import <GoogleMobileAds/GoogleMobileAdsDefines.h> |
|
10 |
#import <UIKit/UIKit.h> |
|
11 |
|
|
12 |
@protocol GADVideoControllerDelegate; |
|
13 |
|
|
14 |
/// The video controller class provides a way to get the video metadata and also manages video |
|
15 |
/// content of the ad rendered by the Google Mobile Ads SDK. You don't need to create an instance of |
|
16 |
/// this class. When the ad rendered by the Google Mobile Ads SDK loads video content, you may be |
|
17 |
/// able to get an instance of this class from the rendered ad object. |
|
18 |
@interface GADVideoController : NSObject |
|
19 |
|
|
20 |
/// Delegate for receiving video notifications. |
|
21 |
@property(nonatomic, weak, nullable) id<GADVideoControllerDelegate> delegate; |
|
22 |
|
|
23 |
/// Indicates whether the video is muted. |
|
24 |
@property(nonatomic, readonly) BOOL isMuted; |
|
25 |
|
|
26 |
/// Mute or unmute video. Set to YES to mute the video. Set to NO to allow the video to play sound. |
|
27 |
/// Doesn't do anything if -customControlsEnabled returns NO. |
|
28 |
- (void)setMute:(BOOL)mute; |
|
29 |
|
|
30 |
/// Play the video. Doesn't do anything if the video is already playing or if |
|
31 |
/// -customControlsEnabled returns NO. |
|
32 |
- (void)play; |
|
33 |
|
|
34 |
/// Pause the video. Doesn't do anything if the video is already paused or if |
|
35 |
/// -customControlsEnabled- returns NO. |
|
36 |
- (void)pause; |
|
37 |
|
|
38 |
/// Stops the video and displays the video's first frame. Call -play to resume playback at the start |
|
39 |
/// of the video. Doesn't do anything if -customControlsEnabled returns NO. |
|
40 |
- (void)stop; |
|
41 |
|
|
42 |
/// Indicates whether video custom controls (for example, play/pause/mute/unmute) are enabled. |
|
43 |
- (BOOL)customControlsEnabled; |
|
44 |
|
|
45 |
/// Indicates whether video click to expand behavior is enabled. |
|
46 |
- (BOOL)clickToExpandEnabled; |
|
47 |
|
|
48 |
@end |