IMAAdPlaybackInfo.h
1 //
2 // IMAAdPlaybackInfo.h
3 // GoogleIMA3
4 //
5 // Copyright (c) 2014 Google Inc. All rights reserved.
6 //
7 // Defines a protocol for providing ad playback information.
8 
9 #import <Foundation/Foundation.h>
10 
14 @protocol IMAAdPlaybackInfo<NSObject>
15 
19 @property(nonatomic, readonly) NSTimeInterval currentMediaTime;
20 
24 @property(nonatomic, readonly) NSTimeInterval totalMediaTime;
25 
29 @property(nonatomic, readonly) NSTimeInterval bufferedMediaTime;
30 
34 @property(nonatomic, readonly, getter=isPlaying) BOOL playing;
35 
36 @end
NSTimeInterval bufferedMediaTime
The buffered media time of the ad, or 0 if no ad loaded.
Definition: IMAAdPlaybackInfo.h:29
BOOL playing
Whether or not the ad is currently playing.
Definition: IMAAdPlaybackInfo.h:34
NSTimeInterval currentMediaTime
The current media time of the ad, or 0 if no ad loaded.
Definition: IMAAdPlaybackInfo.h:19
Groups various properties of the ad player.
Definition: IMAAdPlaybackInfo.h:14
NSTimeInterval totalMediaTime
The total media time of the ad, or 0 if no ad loaded.
Definition: IMAAdPlaybackInfo.h:24