<GCKDeviceManagerDelegate> Protokolü

Örnek Yöntemleri (Instance Methods)
<GCKDeviceManagerDelegate> Protokol Referansı

Genel Bakış

GCKDeviceManager temsilci protokolü.

Aksi belirtilmedikçe, çağıran taraf, yetki veren GCKDeviceManager nesnesini bir temsilci yöntemi içinden serbest bırakmamalıdır.

<NSObjectNSObject> öğesinden devralır.

Örnek Yöntem Özeti

(void) - deviceManagerDidConnect:
 Cihazla bağlantı kurulduğunda çağrılır. Diğer...
 
(void) - deviceManager:didFailToConnectWithError:
 Cihazla bağlantı başarısız olduğunda çağrılır. Diğer...
 
(void) - deviceManager:didDisconnectWithError:
 Cihazla bağlantı sonlandırıldığında çağrılır. Diğer...
 
(void) - deviceManager:didSuspendConnectionWithReason:
 Cihazla bağlantı askıya alındığında (muhtemelen geçici olarak) çağrılır. Diğer...
 
(void) - deviceManagerDidResumeConnection:rejoinedApplication:
 Daha önce askıya alınmış bir cihaz bağlantısı yeniden kurulduğunda çağrılır. Diğer...
 
(void) - deviceManager:didConnectToCastApplication:sessionID:launchedApplication:
 Bir uygulama başlatıldığında veya uygulamaya katılma işlemi gerçekleştiğinde çağrılır. Diğer...
 
(void) - deviceManager:didFailToConnectToApplicationWithError:
 Bir uygulamaya bağlanma işlemi başarısız olduğunda çağrılır. Diğer...
 
(void) - deviceManager:didDisconnectFromApplicationWithError:
 Mevcut uygulamanın bağlantısı kesildiğinde çağrılır. Diğer...
 
(void) - deviceManagerDidStopApplication:
 Uygulamayı durdurma isteği başarıyla tamamlandığında çağrılır. Diğer...
 
(void) - deviceManager:didFailToStopApplicationWithError:
 Durdurma uygulaması isteği başarısız olduğunda çağrılır. Diğer...
 
(void) - deviceManager:didReceiveApplicationMetadata:
 Şu anda çalışmakta olan uygulamanın uygulama meta verileri her değiştiğinde çağrılır. Diğer...
 
(void) - deviceManager:didReceiveApplicationStatusText:
 O anda çalışan uygulama durum metni her değiştiğinde çağrılır. Diğer...
 
(void) - deviceManager:volumeDidChangeToLevel:isMuted:
 Ses düzeyi her değiştiğinde çağrılır. Diğer...
 
(void) - deviceManager:didReceiveActiveInputStatus:
 Etkin giriş durumu her değiştiğinde çağrılır. Diğer...
 
(void) - deviceManager:didReceiveStandbyStatus:
 Bekleme durumu her değiştiğinde çağrılır. Diğer...
 
(void) - deviceManager:request:didFailWithError:
 Eşzamansız bir işlem başarısız olduğunda çağrılır. Diğer...
 
(void) - deviceManagerDidPair:withGuestModeDevice:
 Cihazla misafir modu bağlantısı kurulduğunda çağrılır. Diğer...
 

Yöntem Ayrıntıları

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

Cihazla bağlantı kurulduğunda çağrılır.

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

Cihazla bağlantı başarısız olduğunda çağrılır.

GCKDeviceManager nesnesini bu geri çağırma işlevi içinden serbest bırakmak güvenlidir.

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

Cihazla bağlantı sonlandırıldığında çağrılır.

GCKDeviceManager nesnesini bu geri çağırma işlevi içinden serbest bırakmak güvenlidir.

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

Cihazla bağlantı askıya alındığında (muhtemelen geçici olarak) çağrılır.

Bağlantı askıya alındığında cihaz yöneticisi, uygun zamanda bağlantıyı otomatik olarak yeniden kurmaya çalışır. Arama uygulaması, yeniden bağlanmayı zorlamamalıdır.

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

Daha önce askıya alınmış bir cihaz bağlantısı yeniden kurulduğunda çağrılır.

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

Bir uygulama başlatıldığında veya uygulamaya katılma işlemi gerçekleştiğinde çağrılır.

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

Bir uygulamaya bağlanma işlemi başarısız olduğunda çağrılır.

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

Mevcut uygulamanın bağlantısı kesildiğinde çağrılır.

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

Uygulamayı durdurma isteği başarıyla tamamlandığında çağrılır.

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

Durdurma uygulaması isteği başarısız olduğunda çağrılır.

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

Şu anda çalışmakta olan uygulamanın uygulama meta verileri her değiştiğinde çağrılır.

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

O anda çalışan uygulama durum metni her değiştiğinde çağrılır.

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

Ses düzeyi her değiştiğinde çağrılır.

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

Etkin giriş durumu her değiştiğinde çağrılır.

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

Bekleme durumu her değiştiğinde çağrılır.

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

Eşzamansız bir işlem başarısız olduğunda çağrılır.

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

Cihazla misafir modu bağlantısı kurulduğunda çağrılır.

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