کلاس GCKadBreakInfoBuilder
یک شی سازنده برای ساختن نمونه های جدید یا مشتق شده GCKAdBreakInfo .
سازنده ممکن است برای استخراج یک GCKAdBreakInfo از یک موجود استفاده شود:
همچنین می توان از آن برای ساخت یک GCKAdBreakInfo جدید از ابتدا استفاده کرد:
builder.title = ...;
builder.contentURL = ...;
builder.contentID = ...;
- از آنجا که
- 4.3.4
NSObject را به ارث می برد.
|
(instancetype) | - initWithAdBreakInfo: |
|
(instancetype) | - initWithAdBreakID:adBreakClipIds: |
|
(instancetype) | - init |
|
( GCKAdBreakInfo *) | - build |
|
|
read write nonatomic copy |
رشته ای که به طور منحصر به فرد این وقفه تبلیغاتی را مشخص می کند.
- (NSTimeInterval) playbackPosition |
|
read write nonatomic assign |
موقعیت پخش، در چند ثانیه، که در آن این تبلیغ شروع به پخش می کند.
- (NSArray<NSString *>*) adBreakClipIDs |
|
read write nonatomic copy |
فهرستی از رشتههای شناسه برای کلیپهای وقفه تبلیغاتی موجود در این وقفه آگهی.
|
read write nonatomic assign |
خواه وقفه آگهی قبلاً تماشا شده باشد یا خیر.
|
read write nonatomic assign |
آیا وقفه تبلیغاتی تعبیه شده است.
|
read write nonatomic assign |
آیا وقفه تبلیغاتی گسترش یافته است.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["The `GCKAdBreakInfoBuilder` class is used to construct or modify instances of `GCKAdBreakInfo`, which represent ad breaks in media content."],["Developers can use the builder to create new ad break information from scratch or derive it from an existing one by setting properties like ad break ID, playback position, and ad clip IDs."],["The builder provides properties such as `adBreakID`, `playbackPosition`, `adBreakClipIDs`, `watched`, `embedded`, and `expanded` to define the characteristics of the ad break."],["By calling the `build` method on the builder, a `GCKAdBreakInfo` instance is created with the specified attributes."]]],["The `GCKAdBreakInfoBuilder` class constructs `GCKAdBreakInfo` instances. It can derive an instance from an existing one by initializing with `initWithAdBreakInfo:`, then modifying properties like `adBreakID` or `playbackPosition`, and finally calling `build`. It can also create a new instance from scratch with `initWithAdBreakID:`, setting properties like `adBreakID` and `adBreakClipIDs`, `watched`, `embedded` or `expanded`, then using `build`. The builder manages ad break identifiers, playback positions, clip IDs, and watched/embedded/expanded statuses.\n"]]