GCKAdBreakClipInfoBuilder Class

GCKAdBreakClipInfoBuilder Class Reference

Overview

A builder object for constructing new or derived GCKAdBreakClipInfo instances.

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

[[ GCKAdBreakClipInfoBuilder alloc] initWithAdBreakClipInfo:originalAdBreakClipInfo];
builder. adBreakClipID = ...; // Change the ad break clip ID.
builder. duration = 100; // Change the ad break's duration.
GCKAdBreakClipInfo *derivedAdBreakClipInfo = [builder build ];

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

[[ GCKAdBreakClipInfoBuilder alloc] initWithAdBreakClipID:...];
builder. title = ...;
builder. contentURL = ...;
builder. contentID = ...;
// Set all other desired propreties...
GCKAdBreakClipInfo *newAdBreakClipInfo = [builder build ];
Since
4.3.4

Inherits NSObject.

Instance Method Summary

(instancetype) 
Constructs a new GCKAdBreakClipInfoBuilder with all of the fields of the adBreakClipInfo object. More...
(instancetype) 
Constructs a new GCKAdBreakClipInfoBuilder with the ad break clip ID and all other attributes initialized to default values. More...
(instancetype) 
- init
Builds a GCKAdBreakClipInfo using the builder's current attributes. More...

Property Summary

NSString * 
A string that uniquely identifies this ad break clip. More...
NSTimeInterval 
The clip's duration. More...
NSString * 
The clip's title. More...
NSURL * 
The click-through URL for this clip. More...
NSURL * 
URL for the content that represents this clip (typically an image). More...
NSString * 
MIME type of the content referenced by contentURL . More...
NSString * 
The content's ID. More...
NSURL * 
The poster URL for this clip. More...
NSTimeInterval 
The length of time into the clip when it can be skipped in seconds. More...
The HLS segment format for this clip. More...
The VAST ad request configuration if any. More...
id 
Custom application-specific data associated with the clip. More...

Method Detail

- (instancetype) initWithAdBreakClipInfo: ( GCKAdBreakClipInfo *)  adBreakClipInfo

Constructs a new GCKAdBreakClipInfoBuilder with all of the fields of the adBreakClipInfo object.

Parameters
adBreakClipInfo
The ad break clip info to get the fields from.
- (instancetype) initWithAdBreakClipID: (NSString *)  adBreakClipID

Constructs a new GCKAdBreakClipInfoBuilder with the ad break clip ID and all other attributes initialized to default values.

Parameters
adBreakClipID
The clip ID of the ad break clip info.
- ( GCKAdBreakClipInfo *) build

Builds a GCKAdBreakClipInfo using the builder's current attributes.

Returns
The new GCKAdBreakClipInfo instance.

Property Detail

- (NSString*) adBreakClipID
read write nonatomic copy

A string that uniquely identifies this ad break clip.

- (NSTimeInterval) duration
read write nonatomic assign

The clip's duration.

- (NSString*) title
read write nonatomic copy

The clip's title.

- (NSURL*) clickThroughURL
read write nonatomic copy

The click-through URL for this clip.

- (NSURL*) contentURL
read write nonatomic copy

URL for the content that represents this clip (typically an image).

- (NSString*) mimeType
read write nonatomic copy

MIME type of the content referenced by contentURL .

- (NSString*) contentID
read write nonatomic copy

The content's ID.

- (NSURL*) posterURL
read write nonatomic copy

The poster URL for this clip.

- (NSTimeInterval) whenSkippable
read write nonatomic assign

The length of time into the clip when it can be skipped in seconds.

- ( GCKHLSSegmentFormat ) hlsSegmentFormat
read write nonatomic assign

The HLS segment format for this clip.

- ( GCKVASTAdsRequest *) vastAdsRequest
read write nonatomic assign

The VAST ad request configuration if any.

See more here: Digital Video Ad Serving Template 4.0 .

- (id) customData
read write nonatomic assign

Custom application-specific data associated with the clip.

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