<GCKMediaQueuePause> Protokol
Bir GCKMediaQueue öğesinden eşzamansız bildirim almak için yetki verme protokolü.
- yılından beri
- 4.3.4
<NSObjectNSObject> öğesini devralır.
Sıraya bir veya daha fazla değişiklik yapılmak üzereyken çağrılır.
- Parameters
-
Sıra tamamen yeniden yüklendiğinde çağrıldı.
Daha önce erişilen tüm sıra öğeleri geçersiz olarak kabul edilmelidir.
- Parameters
-
- (void) mediaQueue: |
|
(GCKMediaQueue *) |
queue |
didInsertItemsInRange: |
|
(NSRange) |
range |
|
|
| |
|
optional |
Sıraya ardışık bir dizi öğe eklendiğinde çağrılır.
- 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 |
Sıradaki bir veya daha fazla sıra öğesi güncellendiğinde çağrılır.
Bu, daha önce erişilen ancak kullanılamayan öğelerin alındığı ve önbelleğe yerleştirildiği ve daha önce önbelleğe alınan öğelerin önbellekten temizlendiği durumu içerir.
- 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 |
Bir veya daha fazla sıra öğesi sıradan kaldırıldığında çağrılır.
- Parameters
-
queue | The queue. |
indexes | The ordered list of indexes of the items that have been removed. |
Sırada bir veya daha fazla değişiklik yapıldıktan sonra çağrılır.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2023-12-01 UTC.
[null,null,["Son güncelleme tarihi: 2023-12-01 UTC."],[[["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."]]],["The `GCKMediaQueueDelegate` protocol provides methods for asynchronous notifications about changes to a media queue. Key actions include: notifying when changes are imminent (`mediaQueueWillChange:`), when the queue is reloaded (`mediaQueueDidReloadItems:`), when items are inserted (`mediaQueue:didInsertItemsInRange:`), updated (`mediaQueue:didUpdateItemsAtIndexes:`), or removed (`mediaQueue:didRemoveItemsAtIndexes:`), and when changes are completed (`mediaQueueDidChange:`). Each method provides the affected queue and relevant details like ranges or indexes.\n"]]