GCKAdBreakInfo.h
1 // Copyright 2013 Google Inc.
2 
3 #import <GoogleCast/GCKAdBreakClipInfo.h>
4 #import <GoogleCast/GCKDefines.h>
5 
6 #import <Foundation/Foundation.h>
7 
8 GCK_ASSUME_NONNULL_BEGIN
9 
15 GCK_EXPORT
16 @interface GCKAdBreakInfo : NSObject <NSCopying, NSSecureCoding>
17 
23 @property(nonatomic, strong, readonly) NSString *adBreakID;
24 
30 @property(nonatomic, assign, readonly) NSTimeInterval playbackPosition;
31 
37 @property(nonatomic, assign, readonly) BOOL watched;
38 
44 @property(nonatomic, strong, readonly) NSArray<NSString *> *adBreakClipIDs;
45 
51 @property(nonatomic, assign, readonly) BOOL embedded;
52 
57 - (instancetype)initWithPlaybackPosition:(NSTimeInterval)playbackPosition;
58 
59 @end
60 
61 GCK_ASSUME_NONNULL_END
NSString * adBreakID
A string that uniquely identifies this ad break.
Definition: GCKAdBreakInfo.h:23
NSArray< NSString * > * adBreakClipIDs
A list of identifier strings for the ad break clips contained by this ad break.
Definition: GCKAdBreakInfo.h:44
A class representing an ad break.
Definition: GCKAdBreakInfo.h:16
NSTimeInterval playbackPosition
The playback position, in seconds, at which this ad will start playing.
Definition: GCKAdBreakInfo.h:30
BOOL embedded
Whether the ad break is embedded.
Definition: GCKAdBreakInfo.h:51
BOOL watched
Whether the ad break has already been watched or not.
Definition: GCKAdBreakInfo.h:37