คลาส GCKAdBreakInfoBuilder
ออบเจ็กต์เครื่องมือสร้างสําหรับสร้างอินสแตนซ์ GCKAdBreakInfo ใหม่หรือที่ดึงมา
เครื่องมือสร้างอาจใช้ในการดึง GCKAdBreakInfo จากที่มีอยู่:
นอกจากนี้ยังใช้สร้าง GCKAdBreakInfo ใหม่ตั้งแต่ต้นได้ด้วย
เครื่องมือสร้าง.title = ...;
เครื่องมือสร้าง.contentURL = ...;
เครื่องมือสร้าง.contentID = ...;
- Since
- 4.3.4
รับค่า NSObject
|
(instancetype) | - initWithAdBreakInfo: |
|
(instancetype) | - initWithAdBreakID:adBreakClipIds: |
|
(instancetype) | - init |
|
(GCKAdBreakInfo *) | - build |
|
สตริงที่ระบุช่วงพักโฆษณานี้โดยไม่ซ้ำกัน
- (NSTimeInterval) playbackPosition |
|
readwritenonatomicassign |
ตำแหน่งการเล่นเป็นวินาทีที่โฆษณานี้จะเริ่มเล่น
- (NSArray<NSString *>*) adBreakClipIDs |
|
readwritenonatomiccopy |
รายการสตริงตัวระบุของคลิปช่วงพักโฆษณาที่อยู่ในช่วงพักโฆษณานี้
ผู้ใช้ดูช่วงพักโฆษณาแล้วหรือไม่
ช่วงพักโฆษณาขยายอยู่หรือไม่
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-12-02 UTC
[null,null,["อัปเดตล่าสุด 2023-12-02 UTC"],[[["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"]]