<GCKSessionManagerListener> 프로토콜

<GCKSessionManagerListener> 프로토콜 참조

개요

GCKSessionManager 리스너 프로토콜

프로토콜의 메서드는 모두 선택사항입니다. 모든 알림 메서드는 두 가지 유형으로 제공됩니다. 하나는 모든 세션 유형에 대해 호출되고, 다른 하나는 전송 세션에 대해 호출됩니다.

리스너는 등록된 순서대로 호출됩니다. 프레임워크 자체의 구성요소에 의해 등록된 GCKSessionManagerListener 인스턴스 (예: GCKUIMediaController)는 애플리케이션이 sessionManager:willStartSession: (GCKSessionManagerListener-p), sessionManager:willStartCastSession: (GCKSessionManagerListener-p), sessionManager:willResumeSession: (GCKSessionManagerListener-p), sessionManager:willResumeCastSession: (GCKSessionManagerListener-p) 콜백에 등록한 인스턴스 뒤에 항상 호출되고 나머지 모든 콜백에 대해서는 애플리케이션이 등록한 인스턴스 앞에 호출됩니다.

Since
3.0

<NSObjectNSObject>를 상속합니다.

인스턴스 메서드 요약

(void) - sessionManager:willStartSession:
 세션이 시작되려고 할 때 호출됩니다. 더보기...
 
(void) - sessionManager:didStartSession:
 세션이 성공적으로 시작되었을 때 호출됩니다. 더보기...
 
(void) - sessionManager:willStartCastSession:
 전송 세션이 시작되려고 할 때 호출됩니다. 더보기...
 
(void) - sessionManager:didStartCastSession:
 Cast 세션이 성공적으로 시작되었을 때 호출됩니다. 더보기...
 
(void) - sessionManager:willEndSession:
 요청이 있거나 오류로 인해 세션이 종료될 때 호출됩니다. 더보기...
 
(void) - sessionManager:didEndSession:withError:
 요청에 의해 또는 오류로 인해 세션이 종료되면 호출됩니다. 더보기...
 
(void) - sessionManager:willEndCastSession:
 요청에 의해 또는 오류로 인해 Cast 세션이 종료되려고 할 때 호출됩니다. 더보기...
 
(void) - sessionManager:didEndCastSession:withError:
 요청에 의해 또는 오류로 인해 Cast 세션이 종료되면 호출됩니다. 더보기...
 
(void) - sessionManager:didFailToStartSession:withError:
 세션을 시작할 수 없을 때 호출됩니다. 더보기...
 
(void) - sessionManager:didFailToStartCastSession:withError:
 전송 세션을 시작할 수 없을 때 호출됩니다. 더보기...
 
(void) - sessionManager:didSuspendSession:withReason:
 세션이 정지될 때 호출됩니다. 더보기...
 
(void) - sessionManager:didSuspendCastSession:withReason:
 전송 세션이 정지될 때 호출됩니다. 더보기...
 
(void) - sessionManager:willResumeSession:
 세션이 재개되려고 할 때 호출됩니다. 더보기...
 
(void) - sessionManager:didResumeSession:
 세션이 재개되었을 때 호출됩니다. 더보기...
 
(void) - sessionManager:willResumeCastSession:
 전송 세션이 재개되려고 할 때 호출됩니다. 더보기...
 
(void) - sessionManager:didResumeCastSession:
 Cast 세션이 성공적으로 재개되었을 때 호출됩니다. 더보기...
 
(void) - sessionManager:session:didUpdateDevice:
 이 세션과 연결된 기기가 변경되었을 때 (예: 친숙한 이름 변경) 호출됩니다. 더보기...
 
(void) - sessionManager:session:didReceiveDeviceVolume:muted:
 세션의 업데이트된 기기 볼륨과 음소거 상태를 수신했을 때 호출됩니다. 더보기...
 
(void) - sessionManager:castSession:didReceiveDeviceVolume:muted:
 Cast 세션의 업데이트된 기기 볼륨과 음소거 상태가 수신되면 호출됩니다. 더보기...
 
(void) - sessionManager:session:didReceiveDeviceStatus:
 세션의 업데이트된 기기 상태가 수신되면 호출됩니다. 더보기...
 
(void) - sessionManager:castSession:didReceiveDeviceStatus:
 Cast 세션의 업데이트된 기기 상태가 수신되면 호출됩니다. 더보기...
 

메서드 세부정보

- (void) sessionManager: (GCKSessionManager *)  sessionManager
willStartSession: (GCKSession *)  session 
optional

세션이 시작되려고 할 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didStartSession: (GCKSession *)  session 
optional

세션이 성공적으로 시작되었을 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
willStartCastSession: (GCKCastSession *)  session 
optional

전송 세션이 시작되려고 할 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didStartCastSession: (GCKCastSession *)  session 
optional

Cast 세션이 성공적으로 시작되었을 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
willEndSession: (GCKSession *)  session 
optional

요청이 있거나 오류로 인해 세션이 종료될 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didEndSession: (GCKSession *)  session
withError: (NSError *__nullable)  error 
optional

요청에 의해 또는 오류로 인해 세션이 종료되면 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe session.
errorThe error, if any; otherwise nil.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
willEndCastSession: (GCKCastSession *)  session 
optional

요청에 의해 또는 오류로 인해 Cast 세션이 종료되려고 할 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didEndCastSession: (GCKCastSession *)  session
withError: (NSError *__nullable)  error 
optional

요청에 의해 또는 오류로 인해 Cast 세션이 종료되면 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
errorThe error, if any; otherwise nil.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didFailToStartSession: (GCKSession *)  session
withError: (NSError *)  error 
optional

세션을 시작할 수 없을 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe session.
errorThe error.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didFailToStartCastSession: (GCKCastSession *)  session
withError: (NSError *)  error 
optional

전송 세션을 시작할 수 없을 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
errorThe error.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didSuspendSession: (GCKSession *)  session
withReason: (GCKConnectionSuspendReason reason 
optional

세션이 정지될 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe session.
reasonThe reason for the suspension.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didSuspendCastSession: (GCKCastSession *)  session
withReason: (GCKConnectionSuspendReason reason 
optional

전송 세션이 정지될 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
reasonThe reason for the suspension.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
willResumeSession: (GCKSession *)  session 
optional

세션이 재개되려고 할 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didResumeSession: (GCKSession *)  session 
optional

세션이 재개되었을 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
willResumeCastSession: (GCKCastSession *)  session 
optional

전송 세션이 재개되려고 할 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didResumeCastSession: (GCKCastSession *)  session 
optional

Cast 세션이 성공적으로 재개되었을 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
session: (GCKSession *)  session
didUpdateDevice: (GCKDevice *)  device 
optional

이 세션과 연결된 기기가 변경되었을 때 (예: 친숙한 이름 변경) 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
deviceThe updated device object.
Since
3.2
- (void) sessionManager: (GCKSessionManager *)  sessionManager
session: (GCKSession *)  session
didReceiveDeviceVolume: (float)  volume
muted: (BOOL)  muted 
optional

세션의 업데이트된 기기 볼륨과 음소거 상태를 수신했을 때 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe session.
volumeThe current volume, in the range [0.0, 1.0].
mutedThe current mute state.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
castSession: (GCKCastSession *)  session
didReceiveDeviceVolume: (float)  volume
muted: (BOOL)  muted 
optional

Cast 세션의 업데이트된 기기 볼륨과 음소거 상태가 수신되면 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
volumeThe current volume, in the range [0.0, 1.0].
mutedThe current mute state.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
session: (GCKSession *)  session
didReceiveDeviceStatus: (NSString *__nullable)  statusText 
optional

세션의 업데이트된 기기 상태가 수신되면 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe session.
statusTextThe new device status text.
- (void) sessionManager: (GCKSessionManager *)  sessionManager
castSession: (GCKCastSession *)  session
didReceiveDeviceStatus: (NSString *__nullable)  statusText 
optional

Cast 세션의 업데이트된 기기 상태가 수신되면 호출됩니다.

Parameters
sessionManagerThe session manager.
sessionThe Cast session.
statusTextThe new device status text.