| | |
| | | /// content of the ad rendered by the Google Mobile Ads SDK. You don't need to create an instance of |
| | | /// this class. When the ad rendered by the Google Mobile Ads SDK loads video content, you may be |
| | | /// able to get an instance of this class from the rendered ad object. |
| | | NS_SWIFT_NAME(VideoController) |
| | | @interface GADVideoController : NSObject |
| | | |
| | | /// Delegate for receiving video notifications. |
| | | @property(nonatomic, weak, nullable) id<GADVideoControllerDelegate> delegate; |
| | | |
| | | /// Indicates whether the video is muted. |
| | | @property(nonatomic, readonly) BOOL isMuted; |
| | | /// Indicates whether the video is muted. Set to YES to mute the video. Set to NO to allow the video |
| | | /// to play sound. The setter doesn't do anything if -customControlsEnabled returns NO. |
| | | @property(nonatomic, getter=isMuted) BOOL muted; |
| | | |
| | | /// Mute or unmute video. Set to YES to mute the video. Set to NO to allow the video to play sound. |
| | | /// Doesn't do anything if -customControlsEnabled returns NO. |
| | | - (void)setMute:(BOOL)mute; |
| | | /// Indicates whether video custom controls (for example, play/pause/mute/unmute) are enabled. |
| | | @property(nonatomic, readonly, getter=areCustomControlsEnabled) |
| | | BOOL customControlsEnabled NS_SWIFT_NAME(areCustomControlsEnabled); |
| | | |
| | | /// Indicates whether video click to expand behavior is enabled. |
| | | @property(nonatomic, readonly, getter=isClickToExpandEnabled) |
| | | BOOL clickToExpandEnabled NS_SWIFT_NAME(isClickToExpandEnabled); |
| | | |
| | | /// Play the video. Doesn't do anything if the video is already playing or if |
| | | /// -customControlsEnabled returns NO. |
| | |
| | | /// Stops the video and displays the video's first frame. Call -play to resume playback at the start |
| | | /// of the video. Doesn't do anything if -customControlsEnabled returns NO. |
| | | - (void)stop; |
| | | |
| | | /// Indicates whether video custom controls (for example, play/pause/mute/unmute) are enabled. |
| | | - (BOOL)customControlsEnabled; |
| | | |
| | | /// Indicates whether video click to expand behavior is enabled. |
| | | - (BOOL)clickToExpandEnabled; |
| | | |
| | | @end |