GCKAdBreakInfo Class

  • GCKAdBreakInfo is a class that represents an ad break within a media playback, providing details about its timing, identification, and composition.

  • It includes properties like adBreakID, playbackPosition, watched status, and adBreakClipIDs to manage ad breaks effectively.

  • Developers can initialize an GCKAdBreakInfo instance using initWithPlaybackPosition: and access its properties to control ad playback behavior.

  • This class helps manage ad breaks by providing information about their timing, unique identifiers, whether they have been watched, and the IDs of individual ad clips within the break.

GCKAdBreakInfo Class Reference

Overview

A class representing an ad break.

Since
3.1

Inherits NSObject. Implements <NSCopying>.

Instance Method Summary

(instancetype) - initWithPlaybackPosition:
 Designated initializer. More...
 

Property Summary

NSString * adBreakID
 A string that uniquely identifies this ad break. More...
 
NSTimeInterval playbackPosition
 The playback position, in seconds, at which this ad will start playing. More...
 
BOOL watched
 Whether the ad break has already been watched or not. More...
 
NSArray< NSString * > * adBreakClipIDs
 A list of the identifier string for the ad break clips contained by this ad break. More...
 

Method Detail

- (instancetype) initWithPlaybackPosition: (NSTimeInterval)  playbackPosition

Designated initializer.

Constructs a new GCKAdBreakInfo.

Parameters
playbackPositionThe playback position in seconds for this ad break.

Property Detail

- (NSString*) adBreakID
readnonatomiccopy

A string that uniquely identifies this ad break.

Since
3.3
- (NSTimeInterval) playbackPosition
readnonatomicassign

The playback position, in seconds, at which this ad will start playing.

Since
3.1
- (BOOL) watched
readnonatomicassign

Whether the ad break has already been watched or not.

Since
3.3
- (NSArray<NSString *>*) adBreakClipIDs
readnonatomicstrong

A list of the identifier string for the ad break clips contained by this ad break.

Since
3.3