פרוטוקול <GCKMediaQueueQueue>
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפרוטוקול להאצלה לקבלת התראות אסינכרוניות מ-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 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 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"]]