<GCKMediaटेलिगेट> प्रोटोकॉल
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
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. |
सूची में एक या उससे ज़्यादा बदलाव किए जाने के बाद कॉल किया जाता है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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 (UTC) को अपडेट किया गया."],[],["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"]]