‫Protocol ‏<GCKDeviceManagerDelegate>

‫<GCKDeviceManagerDelegate> הפניה לפרוטוקול

סקירה כללית

פרוטוקול ההרשאה GCKDeviceManager.

אלא אם צוין אחרת, המתקשר לא צריך לשחרר את אובייקט ההקצאה GCKDeviceManager מתוך שיטת ההקצאה.

‫Inherits <NSObjectNSObject>.

סיכום שיטות המופע

(void) - deviceManagerDidConnect:
 הפונקציה מופעלת כשנוצר חיבור למכשיר. עוד...
 
(void) - deviceManager:didFailToConnectWithError:
 הפונקציה מופעלת כשהחיבור למכשיר נכשל. עוד...
 
(void) - deviceManager:didDisconnectWithError:
 הפונקציה מופעלת כשהחיבור למכשיר מסתיים. עוד...
 
(void) - deviceManager:didSuspendConnectionWithReason:
 הפונקציה נקראת כשהחיבור למכשיר מושעה, יכול להיות שבאופן זמני. עוד...
 
(void) - deviceManagerDidResumeConnection:rejoinedApplication:
 השיטה נקראת כאשר חיבור למכשיר שהושעה בעבר נוצר מחדש. עוד...
 
(void) - deviceManager:didConnectToCastApplication:sessionID:launchedApplication:
 מופעל כשאפליקציה מופעלת או כשמצטרפים אליה. עוד...
 
(void) - deviceManager:didFailToConnectToApplicationWithError:
 הפונקציה מופעלת כשהחיבור לאפליקציה נכשל. עוד...
 
(void) - deviceManager:didDisconnectFromApplicationWithError:
 הפונקציה מופעלת כשמתנתקים מהאפליקציה הנוכחית. עוד...
 
(void) - deviceManagerDidStopApplication:
 הפונקציה הזו מופעלת כשבקשה להפסקת אפליקציה הושלמה בהצלחה. עוד...
 
(void) - deviceManager:didFailToStopApplicationWithError:
 הפונקציה מופעלת כשבקשה להפסקת האפליקציה נכשלת. עוד...
 
(void) - deviceManager:didReceiveApplicationMetadata:
 הפונקציה נקראת בכל פעם שהמטא-נתונים של האפליקציה שפועלת כרגע משתנים. עוד...
 
(void) - deviceManager:didReceiveApplicationStatusText:
 הפונקציה נקראת בכל פעם שמשתנה טקסט הסטטוס של האפליקציה שפועלת כרגע. עוד...
 
(void) - deviceManager:volumeDidChangeToLevel:isMuted:
 הפונקציה מופעלת בכל פעם שעוצמת הקול משתנה. עוד...
 
(void) - deviceManager:didReceiveActiveInputStatus:
 הפונקציה מופעלת בכל פעם שמשתנה סטטוס הקלט הפעיל. עוד...
 
(void) - deviceManager:didReceiveStandbyStatus:
 הפונקציה מופעלת בכל פעם שסטטוס ההמתנה משתנה. עוד...
 
(void) - deviceManager:request:didFailWithError:
 מופעלת כשפעולה אסינכרונית נכשלת. עוד...
 
(void) - deviceManagerDidPair:withGuestModeDevice:
 הפונקציה מופעלת כשנוצר חיבור למכשיר במצב אורח. עוד...
 

פרטי השיטה

- (void) deviceManagerDidConnect: (GCKDeviceManager *)  deviceManager
optional

הפונקציה מופעלת כשנוצר חיבור למכשיר.

Parameters
deviceManagerThe device manager.
- (void) deviceManager: (GCKDeviceManager *)  deviceManager
didFailToConnectWithError: (NSError *)  error 
optional

הפונקציה מופעלת כשהחיבור למכשיר נכשל.

אפשר לשחרר את האובייקט GCKDeviceManager מתוך הקריאה החוזרת הזו.

Parameters
deviceManagerThe device manager.
errorThe error that caused the connection to fail.
- (void) deviceManager: (GCKDeviceManager *)  deviceManager
didDisconnectWithError: (NSError *__nullable)  error 
optional

הפונקציה מופעלת כשהחיבור למכשיר מסתיים.

אפשר לשחרר את האובייקט GCKDeviceManager מתוך הקריאה החוזרת הזו.

Parameters
deviceManagerThe device manager.
errorThe error that caused the disconnection; nil if there was no error (for example, an intentional disconnect).
- (void) deviceManager: (GCKDeviceManager *)  deviceManager
didSuspendConnectionWithReason: (GCKConnectionSuspendReason reason 
optional

הפונקציה נקראת כשהחיבור למכשיר מושעה, יכול להיות שבאופן זמני.

כשחיבור מושהה, מרכז ניהול המכשירים ינסה ליצור מחדש את החיבור בזמן המתאים. אפליקציית השיחות לא אמורה לנסות להתחבר מחדש בעצמה.

Parameters
deviceManagerThe device manager.
reasonThe reason for the suspension.
- (void) deviceManagerDidResumeConnection: (GCKDeviceManager *)  deviceManager
rejoinedApplication: (BOOL)  rejoinedApplication 
optional

השיטה נקראת כאשר חיבור למכשיר שהושעה בעבר נוצר מחדש.

Parameters
deviceManagerThe device manager.
rejoinedApplicationIf a connection had been established to a receiver application at the time of the suspension, this flag indicates whether that application has been successfully re-joined. This value would be NO if, for example, the application was terminated during the time that the device manager was attempting to re-establish its connection to the device.
- (void) deviceManager: (GCKDeviceManager *)  deviceManager
didConnectToCastApplication: (GCKApplicationMetadata *)  applicationMetadata
sessionID: (NSString *)  sessionID
launchedApplication: (BOOL)  launchedApplication 
optional

מופעל כשאפליקציה מופעלת או כשמצטרפים אליה.

Parameters
deviceManagerThe device manager.
applicationMetadataMetadata about the application.
sessionIDThe current application session ID that is active on the receiver.
launchedApplicationYES if the application was launched as part of the connection, or NO if the application was already running and was joined.
- (void) deviceManager: (GCKDeviceManager *)  deviceManager
didFailToConnectToApplicationWithError: (NSError *)  error 
optional

הפונקציה מופעלת כשהחיבור לאפליקציה נכשל.

Parameters
deviceManagerThe device manager.
errorThe error that caused the failure.
- (void) deviceManager: (GCKDeviceManager *)  deviceManager
didDisconnectFromApplicationWithError: (NSError *__nullable)  error 
optional

הפונקציה מופעלת כשמתנתקים מהאפליקציה הנוכחית.

Parameters
deviceManagerThe device manager.
errorThe error that caused the disconnect, or nil if this was a normal disconnect.
- (void) deviceManagerDidStopApplication: (GCKDeviceManager *)  deviceManager
optional

הפונקציה הזו מופעלת כשבקשה להפסקת אפליקציה הושלמה בהצלחה.

Parameters
deviceManagerThe device manager.
- (void) deviceManager: (GCKDeviceManager *)  deviceManager
didFailToStopApplicationWithError: (NSError *)  error 
optional

הפונקציה מופעלת כשבקשה להפסקת האפליקציה נכשלת.

Parameters
deviceManagerThe device manager.
errorThe error that caused the failure.
- (void) deviceManager: (GCKDeviceManager *)  deviceManager
didReceiveApplicationMetadata: (GCKApplicationMetadata *__nullable)  metadata 
optional

הפונקציה נקראת בכל פעם שהמטא-נתונים של האפליקציה שפועלת כרגע משתנים.

Parameters
deviceManagerThe device manager.
metadataThe application metadata. May be nil if no application is currently running.
- (void) deviceManager: (GCKDeviceManager *)  deviceManager
didReceiveApplicationStatusText: (NSString *__nullable)  applicationStatusText 
optional

הפונקציה נקראת בכל פעם שמשתנה טקסט הסטטוס של האפליקציה שפועלת כרגע.

Parameters
deviceManagerThe device manager.
applicationStatusTextThe application status text. May be nil if no application is currently running or if the application did not report any status text.
- (void) deviceManager: (GCKDeviceManager *)  deviceManager
volumeDidChangeToLevel: (float)  volumeLevel
isMuted: (BOOL)  isMuted 
optional

הפונקציה מופעלת בכל פעם שעוצמת הקול משתנה.

Parameters
deviceManagerThe device manager.
volumeLevelThe current device volume level.
isMutedThe current device mute state.
- (void) deviceManager: (GCKDeviceManager *)  deviceManager
didReceiveActiveInputStatus: (GCKActiveInputStatus activeInputStatus 
optional

הפונקציה מופעלת בכל פעם שמשתנה סטטוס הקלט הפעיל.

Parameters
deviceManagerThe device manager.
activeInputStatusThe active input status.
- (void) deviceManager: (GCKDeviceManager *)  deviceManager
didReceiveStandbyStatus: (GCKStandbyStatus standbyStatus 
optional

הפונקציה מופעלת בכל פעם שסטטוס ההמתנה משתנה.

Parameters
deviceManagerThe device manager.
standbyStatusThe standby status.
- (void) deviceManager: (GCKDeviceManager *)  deviceManager
request: (NSInteger)  requestID
didFailWithError: (NSError *)  error 
optional

מופעלת כשפעולה אסינכרונית נכשלת.

Parameters
deviceManagerThe device manager.
requestIDThe ID of the request that failed.
errorThe error.
- (void) deviceManagerDidPair: (GCKDeviceManager *)  deviceManager
withGuestModeDevice: (GCKDevice *)  guestModeDevice 
optional

הפונקציה מופעלת כשנוצר חיבור למכשיר במצב אורח.

Parameters
deviceManagerThe device manager.
guestModeDeviceThe device object for the concrete guest mode device.