<GCKMediaQueue 委派> 通訊協定(&T)
    
    
      
    
    
      
      透過集合功能整理內容
    
    
      
      你可以依據偏好儲存及分類內容。
    
  
    
  
      
    
  
  
  
  
  
  
    
    
    
接收 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. |  
 
 
 
 
  
  
  
 
  
    
    
    
  
  
  除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
  上次更新時間:2025-07-25 (世界標準時間)。
  
  
  
    
      [[["容易理解","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"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[],["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"]]