<GCKMediaQueueDelegate> 协议
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
用于从 GCKMediaQueue 接收异步通知的委托协议。
- 开始时间
- 4.3.4
继承 <NSObjectNSObject>。
在即将对队列中执行一项或多项更改时调用。
- Parameters
-
在队列完全重新加载时调用。
之前访问过的任何队列项都应被视为无效。
- Parameters
-
- (void) mediaQueue: |
|
(GCKMediaQueue *) |
queue |
didInsertItemsInRange: |
|
(NSRange) |
range |
|
|
| |
|
optional |
当连续范围的队列项已插入队列中时调用。
- Parameters
-
queue | The queue. |
range | The range indicating the starting index and count of items inserted. |
- (void) mediaQueue: |
|
(GCKMediaQueue *) |
queue |
didUpdateItemsAtIndexes: |
|
(NSArray< NSNumber * > *) |
indexes |
|
|
| |
|
optional |
当队列中的一个或多个队列项已更新时调用。
这包括之前已访问但不可用的项已检索并放入缓存的情况,以及先前缓存的项已从缓存中清除的情况。
- Parameters
-
queue | The queue. |
indexes | The ordered list of indexes of the items that have been updated. |
- (void) mediaQueue: |
|
(GCKMediaQueue *) |
queue |
didRemoveItemsAtIndexes: |
|
(NSArray< NSNumber * > *) |
indexes |
|
|
| |
|
optional |
当一个或多个队列项已从队列中移除时调用。
- Parameters
-
queue | The queue. |
indexes | The ordered list of indexes of the items that have been removed. |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-01。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2023-12-01。"],[[["The `GCKMediaQueueDelegate` protocol enables receiving asynchronous notifications from a `GCKMediaQueue`, informing about changes like insertions, removals, and updates."],["It provides methods to handle queue changes, including `mediaQueueWillChange:`, `mediaQueueDidReloadItems:`, `mediaQueue:didInsertItemsInRange:`, `mediaQueue:didUpdateItemsAtIndexes:`, `mediaQueue:didRemoveItemsAtIndexes:`, and `mediaQueueDidChange:`."],["These methods are optional and offer insights into queue modifications, such as when items are added, updated, or removed, or when the entire queue is reloaded."],["Developers can implement these methods to respond to queue events and update their application's state accordingly, ensuring synchronization with the media queue."]]],[]]