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. Implements <NSCopying>.
|
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...
|
|
- (instancetype) initWithPlaybackPosition: |
|
(NSTimeInterval) |
playbackPosition |
|
Designated initializer.
Constructs a new GCKAdBreakInfo.
- Parameters
-
playbackPosition | The playback position in seconds for this ad break. |
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
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
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.
[null,null,["Last updated 2024-09-18 UTC."],[[["\u003cp\u003e\u003ccode\u003eGCKAdBreakInfo\u003c/code\u003e is a class that represents an ad break within a media playback, providing details about its timing, identification, and composition.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003eadBreakID\u003c/code\u003e, \u003ccode\u003eplaybackPosition\u003c/code\u003e, \u003ccode\u003ewatched\u003c/code\u003e status, and \u003ccode\u003eadBreakClipIDs\u003c/code\u003e to manage ad breaks effectively.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can initialize an \u003ccode\u003eGCKAdBreakInfo\u003c/code\u003e instance using \u003ccode\u003einitWithPlaybackPosition:\u003c/code\u003e and access its properties to control ad playback behavior.\u003c/p\u003e\n"],["\u003cp\u003eThis 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.\u003c/p\u003e\n"]]],[],null,["# GCKAdBreakInfo Class\n\n[Instance Methods](#pub-methods) \\| [Properties](#properties) \nGCKAdBreakInfo Class Reference \n\nOverview\n--------\n\nA class representing an ad break.\n\nSince\n: 3.1\n\nInherits NSObject. Implements \\\u003cNSCopying\\\u003e.\n\n|----------------|-----------------------------------------------------------------------------------------------------------------------|\n| Instance Method Summary ----------------------- ||\n| (instancetype) | - [initWithPlaybackPosition:](/cast/v3/reference/ios/interface_g_c_k_ad_break_info#abd0f9596d00c76ef98f3d989eba4bbbf) |\n| | Designated initializer. [More...](#abd0f9596d00c76ef98f3d989eba4bbbf) |\n| ||\n\n|-----------------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| Property Summary ---------------- ||\n| NSString \\* | [adBreakID](/cast/v3/reference/ios/interface_g_c_k_ad_break_info#af943493251c68254e9109a26c645582d) |\n| | A string that uniquely identifies this ad break. [More...](#af943493251c68254e9109a26c645582d) |\n| ||\n| NSTimeInterval | [playbackPosition](/cast/v3/reference/ios/interface_g_c_k_ad_break_info#a6930effa46bf9f7c299383c33de9000d) |\n| | The playback position, in seconds, at which this ad will start playing. [More...](#a6930effa46bf9f7c299383c33de9000d) |\n| ||\n| BOOL | [watched](/cast/v3/reference/ios/interface_g_c_k_ad_break_info#a7d34804396f65b35c5833595f2d2b330) |\n| | Whether the ad break has already been watched or not. [More...](#a7d34804396f65b35c5833595f2d2b330) |\n| ||\n| NSArray\\\u003c NSString \\* \\\u003e \\* | [adBreakClipIDs](/cast/v3/reference/ios/interface_g_c_k_ad_break_info#a8632793a71e2ab3b76b10ffdd2a6ee26) |\n| | A list of the identifier string for the ad break clips contained by this ad break. [More...](#a8632793a71e2ab3b76b10ffdd2a6ee26) |\n| ||\n\nMethod Detail\n-------------\n\n|--------------------------------------------|---|------------------|--------------------|---|\n| - (instancetype) initWithPlaybackPosition: | | (NSTimeInterval) | *playbackPosition* | |\n\nDesignated initializer.\n\nConstructs a new [GCKAdBreakInfo](/cast/v3/reference/ios/interface_g_c_k_ad_break_info \"A class representing an ad break. \").\n\nParameters\n:\n\n |------------------|-----------------------------------------------------|\n | playbackPosition | The playback position in seconds for this ad break. |\n\n\nProperty Detail\n---------------\n\n|-----------------------------------------------------------|-------------------|\n| |--------------------------| | - (NSString\\*) adBreakID | | readnonatomiccopy |\n\nA string that uniquely identifies this ad break.\n\nSince\n: 3.3 \n\n|---------------------------------------------------------------------------------|---------------------|\n| |-------------------------------------| | - (NSTimeInterval) playbackPosition | | readnonatomicassign |\n\nThe playback position, in seconds, at which this ad will start playing.\n\nSince\n: 3.1 \n\n|-------------------------------------------|---------------------|\n| |------------------| | - (BOOL) watched | | readnonatomicassign |\n\nWhether the ad break has already been watched or not.\n\nSince\n: 3.3 \n\n|-------------------------------------------------------------------------------------------------|---------------------|\n| |---------------------------------------------| | - (NSArray\\\u003cNSString \\*\\\u003e\\*) adBreakClipIDs | | readnonatomicstrong |\n\nA list of the identifier string for the ad break clips contained by this ad break.\n\nSince\n: 3.3"]]