GCKAdBreakInfo Class
Stay organized with collections
Save and categorize content based on your preferences.
A class representing an ad break.
- Since
- 3.1
Inherits NSObject, <NSCopying>, and <NSSecureCoding>.
- (instancetype) initWithPlaybackPosition: |
|
(NSTimeInterval) |
playbackPosition |
|
This is here for backwards compatibility reasons, but will return nil.
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
- (NSArray<NSString *>*) adBreakClipIDs |
|
readnonatomicstrong |
A list of identifier strings for the ad break clips contained by this ad break.
- Since
- 3.3
Whether the ad break has already been watched or not.
- Since
- 3.3
Whether the ad break is embedded.
- Since
- 4.1
Whether the ad break is expanded.
- Since
- 4.7.0
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `GCKAdBreakInfo` class represents an ad break within media content and provides information like ad break ID, playback position, and ad clip IDs."],["It includes properties to identify the ad break (`adBreakID`), its start time (`playbackPosition`), and whether it's been watched (`watched`)."],["Ad breaks can contain multiple ad clips, identified by their `adBreakClipIDs`."],["This class also indicates if the ad break is embedded within the content (`embedded`) or expanded for interaction (`expanded`)."],["Although `initWithPlaybackPosition:` exists for backward compatibility, it's deprecated and will return nil; use `init` instead."]]],[]]