<GCKDeviceManagerAuthor> Protokol

<GCKDeviceManagerAuthor> Protokol Referansı

Genel bakış

GCKDeviceManager yetki verme protokolü.

Aksi belirtilmediği sürece arayan, yetki verilen GCKDeviceManager nesnesini yetki verilmiş bir yöntemle yayınlamamalıdır.

<NSObjectNSObject> öğesini devralır.

Örnek Yöntemi Özeti

(void) - deviceManagerDidConnect:
 Cihazla bağlantı kurulduğunda çağrılır. Diğer...
 
(void) - deviceManager:didFailToConnectWithError:
 Cihaz bağlantısı başarısız olduğunda çağrılır. Diğer...
 
(void) - deviceManager:didDisconnectWithError:
 Cihazla bağlantı sonlandığında çağrılır. Diğer...
 
(void) - deviceManager:didSuspendConnectionWithReason:
 Cihaz bağlantısı geçici olarak askıya alındığında (muhtemelen geçici olarak) 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 katıldığında çağrılır. Diğer...
 
(void) - deviceManager:didFailToConnectToApplicationWithError:
 Bir uygulamaya bağlanılamadığında çağrılır. Diğer...
 
(void) - deviceManager:didDisconnectFromApplicationWithError:
 Geçerli uygulamayla bağlantısı kesildiğinde çağrılır. Diğer...
 
(void) - deviceManagerDidStopApplication:
 Durdurma başvuru isteği başarıyla tamamlandığında çağrılır. Diğer...
 
(void) - deviceManager:didFailToStopApplicationWithError:
 Durdurma uygulama isteği başarısız olduğunda çağrılır. Diğer...
 
(void) - deviceManager:didReceiveApplicationMetadata:
 Çalışmakta olan uygulamanın uygulama meta verisi her değiştiğinde. Diğer...
 
(void) - deviceManager:didReceiveApplicationStatusText:
 Çalışmakta olan uygulama durumu metni değiştiğinde çağrılır. Diğer...
 
(void) - deviceManager:volumeDidChangeToLevel:isMuted:
 Ses her değiştiğinde çağrılır. Diğer...
 
(void) - deviceManager:didReceiveActiveInputStatus:
 Etkin giriş durumu değiştiğinde çağrılır. Diğer...
 
(void) - deviceManager:didReceiveStandbyStatus:
 Bekleme durumu değiştiğinde çağrılır. Diğer...
 
(void) - deviceManager:request:didFailWithError:
 Eşzamansız işlem başarısız olduğunda çağrılır. Diğer...
 
(void) - deviceManagerDidPair:withGuestModeDevice:
 Cihaza bir 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

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

GCKDeviceManager nesnesini bu geri çağırma içinden serbest bırakmak mümkündür.

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ığında çağrılır.

GCKDeviceManager nesnesini bu geri çağırma içinden serbest bırakmak mümkündür.

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

Cihaz bağlantısı geçici olarak askıya alındığında (muhtemelen geçici olarak)

Bir bağlantı askıya alındığında, cihaz yöneticisi uygun zamanda bağlantıyı otomatik olarak yeniden kurmayı dener. Arayan uygulama, kendisini yeniden bağlamaya zorlamaya çalışmamalı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 katıldığında ç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ğlanılamadığında çağrılır.

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

Geçerli uygulamayla 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

Durdurma başvuru isteği başarıyla tamamlandığında çağrılır.

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

Durdurma uygulama 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

Çalışmakta olan uygulamanın uygulama meta verisi her değiştiğinde.

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

Çalışmakta olan uygulama durumu metni 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 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 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 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 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

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

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