מחלקה של GCKAdBreakInfo
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מחלקה שמייצגת הפסקה למודעה.
- מאז
- 3.1
ירש את NSObject, <NS Copy> ו-<NSSecureCoding>.
- (instancetype) initWithPlaybackPosition: |
|
(NSTimeInterval) |
playbackPosition |
|
הקטע הזה מופיע כאן מסיבות של תאימות לאחור, אבל הערך יחזיר אפס.
מחרוזת שמזהה באופן ייחודי את ההפסקה למודעה.
- מאז
- 3.3
- (NSTimeInterval) playbackPosition |
|
readnonatomicassign |
מיקום ההפעלה בשניות, שבו המודעה תתחיל לפעול.
- מאז
- 3.1
- (NSArray<NSString *>*) adBreakClipIDs |
|
readnonatomicstrong |
רשימה של מחרוזות זיהוי לקליפים של ההפסקות למודעות שכלולות בהפסקה הזו למודעה.
- מאז
- 3.3
כאן יצוין אם כבר נצפה ההפסקה למודעה או לא.
- מאז
- 3.3
האם ההפסקה למודעה מוטמעת.
- מאז
- 4.1
האם ההפסקה למודעה מורחבת.
- מאז
- 4.7.0
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\u003cp\u003eThe \u003ccode\u003eGCKAdBreakInfo\u003c/code\u003e class represents an ad break within media content and provides information like ad break ID, playback position, and ad clip IDs.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties to identify the ad break (\u003ccode\u003eadBreakID\u003c/code\u003e), its start time (\u003ccode\u003eplaybackPosition\u003c/code\u003e), and whether it's been watched (\u003ccode\u003ewatched\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eAd breaks can contain multiple ad clips, identified by their \u003ccode\u003eadBreakClipIDs\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class also indicates if the ad break is embedded within the content (\u003ccode\u003eembedded\u003c/code\u003e) or expanded for interaction (\u003ccode\u003eexpanded\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eAlthough \u003ccode\u003einitWithPlaybackPosition:\u003c/code\u003e exists for backward compatibility, it's deprecated and will return nil; use \u003ccode\u003einit\u003c/code\u003e instead.\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, \\\u003cNSCopying\\\u003e, and \\\u003cNSSecureCoding\\\u003e.\n\n|----------------|-------------------------------------------------------------------------------------------------------------------------|\n| Instance Method Summary ----------------------- ||\n| (instancetype) | - [initWithPlaybackPosition:](/cast/docs/reference/ios/interface_g_c_k_ad_break_info#abd0f9596d00c76ef98f3d989eba4bbbf) |\n| | This is here for backwards compatibility reasons, but will return nil. [More...](#abd0f9596d00c76ef98f3d989eba4bbbf) |\n| ||\n| (instancetype) | - **init** |\n| ||\n\n|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------|\n| Property Summary ---------------- ||\n| NSString \\* | [adBreakID](/cast/docs/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/docs/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| NSArray\\\u003c NSString \\* \\\u003e \\* | [adBreakClipIDs](/cast/docs/reference/ios/interface_g_c_k_ad_break_info#a8632793a71e2ab3b76b10ffdd2a6ee26) |\n| | A list of identifier strings for the ad break clips contained by this ad break. [More...](#a8632793a71e2ab3b76b10ffdd2a6ee26) |\n| ||\n| BOOL | [watched](/cast/docs/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| BOOL | [embedded](/cast/docs/reference/ios/interface_g_c_k_ad_break_info#aee2556b9ef41d0091966a98e6592e592) |\n| | Whether the ad break is embedded. [More...](#aee2556b9ef41d0091966a98e6592e592) |\n| ||\n| BOOL | [expanded](/cast/docs/reference/ios/interface_g_c_k_ad_break_info#a526f66fe8b534cc5f8b6830e72dd7599) |\n| | Whether the ad break is expanded. [More...](#a526f66fe8b534cc5f8b6830e72dd7599) |\n| ||\n\nMethod Detail\n-------------\n\n|--------------------------------------------|---|------------------|--------------------|---|\n| - (instancetype) initWithPlaybackPosition: | | (NSTimeInterval) | *playbackPosition* | |\n\nThis is here for backwards compatibility reasons, but will return nil.\n\nProperty Detail\n---------------\n\n|-----------------------------------------------------------|---------------------|\n| |--------------------------| | - (NSString\\*) adBreakID | | readnonatomicstrong |\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| |---------------------------------------------| | - (NSArray\\\u003cNSString \\*\\\u003e\\*) adBreakClipIDs | | readnonatomicstrong |\n\nA list of identifier strings for the ad break clips contained by this ad break.\n\nSince\n: 3.3 \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| |-------------------| | - (BOOL) embedded | | readnonatomicassign |\n\nWhether the ad break is embedded.\n\nSince\n: 4.1 \n\n|---------------------------------------------|---------------------|\n| |-------------------| | - (BOOL) expanded | | readnonatomicassign |\n\nWhether the ad break is expanded.\n\nSince\n: 4.7.0"]]