<GCKDeviceManagerDelegate> プロトコル

<GCKDeviceManagerDelegate> プロトコル リファレンス

概要

GCKDeviceManager デリゲート プロトコル。

特に指定がない限り、呼び出し元はデリゲート メソッド内から委任 GCKDeviceManager オブジェクトを解放すべきではありません。

<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.