GCKAdBreakClipInfoBuilder Class

  • GCKAdBreakClipInfoBuilder is a builder object used to construct new or derived GCKAdBreakClipInfo instances.

  • It can be initialized with an existing GCKAdBreakClipInfo object to create a derived instance, or with an ad break clip ID to create a new instance from scratch.

  • The builder has various properties that can be set, such as adBreakClipID, duration, title, contentURL, and customData, to configure the ad break clip information.

  • The build method is used to create the final GCKAdBreakClipInfo instance based on the builder's current attributes.

A builder object for constructing new or derived GCKAdBreakClipInfo instances.

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

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

Since
4.3.4

Inherits NSObject.

Instance Method Summary

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

Property Summary

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

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

Parameters
adBreakClipInfoThe 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
adBreakClipIDThe clip ID of the ad break clip info.

- (NSString*) adBreakClipID

readwritenonatomiccopy

A string that uniquely identifies this ad break clip.

- (NSTimeInterval) duration

readwritenonatomicassign

The clip's duration.

- (NSURL*) clickThroughURL

readwritenonatomiccopy

The click-through URL for this clip.

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

MIME type of the content referenced by contentURL.

The poster URL for this clip.

- (NSTimeInterval) whenSkippable

readwritenonatomicassign

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

The HLS segment format for this clip.

Custom application-specific data associated with the clip.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-09-18 UTC.