פרוטוקול listener של GCKSessionManager.
כל שיטות הפרוטוקול הן אופציונליות. לכל שיטות ההתראה יש שתי גרסאות: אחת שמופעלת עבור כל סוג פעילות באתר, ואחת שמופעלת במיוחד עבור פעילויות Cast.
המאזינים מופעלים בסדר שבו הם נרשמו. GCKSessionManagerListener מופעים שנרשמו על ידי רכיבים של המסגרת עצמה (למשל GCKUIMediaController), יופעלו תמיד אחרי המופעים שנרשמו על ידי האפליקציה לקריאה החוזרת (callbacks) sessionManager:willStartSession: (GCKSessionManagerListener-p), sessionManager:willStartCastSession: (GCKSessionManagerListener-p), sessionManager:willResumeSession: (GCKSessionManagerListener-p) ו-sessionManager:willResumeCastSession: (GCKSessionManagerListener-p); ולפני המכונות שנרשמו על ידי האפליקציה עבור כל הקריאות החוזרות (callbacks).
- סינסה
- 3.0
עוברת בירושה <NSObjectNSObject>.
מתבצעת התקשרות בתחילת פעילות.
- Parameters
-
sessionManager | The session manager. |
session | The session. |
התקשרות לאחר התחלת סשן בהצלחה.
- Parameters
-
sessionManager | The session manager. |
session | The session. |
מתבצעת התקשרות בתחילת פעילות העברה.
- Parameters
-
sessionManager | The session manager. |
session | The session. |
התקשרות לאחר הפעלת סשן העברה בהצלחה.
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
מתבצעת שיחה כשסשן עומד להסתיים, בעקבות בקשה או עקב שגיאה.
- Parameters
-
sessionManager | The session manager. |
session | The session. |
- (void) sessionManager: |
|
(GCKSessionManager *) |
sessionManager |
didEndSession: |
|
(GCKSession *) |
session |
withError: |
|
(NSError *__nullable) |
error |
|
|
| |
|
optional |
התקשרות לאחר סיום סשן, בבקשה או עקב שגיאה.
- Parameters
-
sessionManager | The session manager. |
session | The session. |
error | The error, if any; otherwise nil. |
התקשרות לקראת סיום פעילות העברה, בעקבות בקשה או עקב שגיאה.
- Parameters
-
sessionManager | The session manager. |
session | The session. |
התקשרות לאחר סיום סשן העברה (cast) בבקשה או עקב שגיאה.
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
error | The error, if any; otherwise nil. |
- (void) sessionManager: |
|
(GCKSessionManager *) |
sessionManager |
didFailToStartSession: |
|
(GCKSession *) |
session |
withError: |
|
(NSError *) |
error |
|
|
| |
|
optional |
התקשרות כשסשן נכשל.
- Parameters
-
sessionManager | The session manager. |
session | The session. |
error | The error. |
התקשרות אם הפעלת ההעברה נכשלה.
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
error | The error. |
התקשרות לאחר השעיה.
- Parameters
-
sessionManager | The session manager. |
session | The session. |
reason | The reason for the suspension. |
התקשרות לאחר השעיה של סשן העברה.
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
reason | The reason for the suspension. |
מתבצעת התקשרות לקראת המשך פעילות.
- Parameters
-
sessionManager | The session manager. |
session | The session. |
התקשרות אחרי המשך הפעלה.
- Parameters
-
sessionManager | The session manager. |
session | The session. |
מתבצעת התקשרות כשממשיכים את הפעלת ההעברה.
- Parameters
-
sessionManager | The session manager. |
session | The session. |
התקשרות אחרי המשך ההפעלה של ההעברה.
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
התקשרות כאשר המכשיר המשויך לביקור הזה השתנה באופן כלשהו (למשל, שם הידידותי השתנה).
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
device | The updated device object. |
- סינסה
- 3.2
- (void) sessionManager: |
|
(GCKSessionManager *) |
sessionManager |
session: |
|
(GCKSession *) |
session |
didReceiveDeviceVolume: |
|
(float) |
volume |
muted: |
|
(BOOL) |
muted |
|
|
| |
|
optional |
התקבלה הודעה כאשר התקבל עדכון של נפח המכשיר ומצב ההשתקה בסשן.
- Parameters
-
sessionManager | The session manager. |
session | The session. |
volume | The current volume, in the range [0.0, 1.0]. |
muted | The current mute state. |
- (void) sessionManager: |
|
(GCKSessionManager *) |
sessionManager |
castSession: |
|
(GCKCastSession *) |
session |
didReceiveDeviceVolume: |
|
(float) |
volume |
muted: |
|
(BOOL) |
muted |
|
|
| |
|
optional |
התקבלה הודעה כאשר התקבל עדכון של נפח המכשיר ומצב ההשתקה בסשן של Cast.
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
volume | The current volume, in the range [0.0, 1.0]. |
muted | The current mute state. |
- (void) sessionManager: |
|
(GCKSessionManager *) |
sessionManager |
session: |
|
(GCKSession *) |
session |
didReceiveDeviceStatus: |
|
(NSString *__nullable) |
statusText |
|
|
| |
|
optional |
התקבלה שיחה כאשר התקבל סטטוס מכשיר מעודכן בסשן.
- Parameters
-
sessionManager | The session manager. |
session | The session. |
statusText | The new device status text. |
- (void) sessionManager: |
|
(GCKSessionManager *) |
sessionManager |
castSession: |
|
(GCKCastSession *) |
session |
didReceiveDeviceStatus: |
|
(NSString *__nullable) |
statusText |
|
|
| |
|
optional |
התקבלה שיחה כאשר התקבל עדכון של סטטוס המכשיר עבור סשן העברה (cast).
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
statusText | The new device status text. |