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