GCKAdBreakInfoBuilder Class

  • GCKAdBreakInfoBuilder is used to construct new or derived GCKAdBreakInfo instances.

  • You can initialize a builder from an existing GCKAdBreakInfo object to modify it.

  • A new GCKAdBreakInfo instance can be created from scratch using the builder.

  • The builder has properties like adBreakID, playbackPosition, and adBreakClipIDs to define the ad break.

  • Boolean properties such as watched, embedded, and expanded indicate the state of the ad break.

GCKAdBreakInfoBuilder Class Reference

Overview

A builder object for constructing new or derived GCKAdBreakInfo instances.

The builder may be used to derive a GCKAdBreakInfo from an existing one:

[[ GCKAdBreakInfoBuilder alloc] initWithAdBreakInfo:originalAdBreakInfo];
builder. adBreakID = ...; // Change the ad break clip ID.
builder. playbackPosition = 100; // Change the ad break's duration.
GCKAdBreakInfo *derivedAdBreakInfo = [builder build];

It can also be used to construct a new GCKAdBreakInfo from scratch:

[[ GCKAdBreakInfoBuilder alloc] initWithAdBreakID:...];
builder.title = ...;
builder.contentURL = ...;
builder.contentID = ...;
// Set all other desired propreties...
GCKAdBreakInfo *newAdBreakInfo = [builder build];
Since
4.3.4

Inherits NSObject.

Instance Method Summary

(instancetype) 
- initWithAdBreakInfo:
(instancetype) 
- initWithAdBreakID:adBreakClipIds:
(instancetype) 
- init
- build

Property Summary

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

Property Detail

- (NSString*) adBreakID
read write nonatomic copy

A string that uniquely identifies this ad break.

- (NSTimeInterval) playbackPosition
read write nonatomic assign

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

- (NSArray<NSString *>*) adBreakClipIDs
read write nonatomic copy

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

- (BOOL) watched
read write nonatomic assign

Whether the ad break has already been watched or not.

- (BOOL) embedded
read write nonatomic assign

Whether the ad break is embedded.

- (BOOL) expanded
read write nonatomic assign

Whether the ad break is expanded.

Create a Mobile Website
View Site in Mobile | Classic
Share by: