GCKSession(受保护)类别

GCKSession(受保护)类别参考

概览

只能由 GCKSession 子类替换和调用的方法。

开始时间
3.0

实例方法摘要

(void) - start
 启动会话。更多...
 
(void) - endAndStopCasting:
 结束会话。更多...
 
(void) - suspendWithReason:
 因指定原因暂停会话。更多...
 
(void) - resume
 恢复会话。更多...
 
(void) - notifyDidStartWithSessionID:
 由子类调用,以通知框架已启动会话。更多...
 
(void) - notifyDidFailToStartWithError:
 由子类调用,以通知框架会话无法启动。更多...
 
(void) - notifyDidResume
 由子类调用,以通知框架会话已恢复。更多...
 
(void) - notifyDidSuspendWithReason:
 由子类调用,以通知框架会话已暂停。更多...
 
(void) - notifyDidEndWithError:
 由子类调用,以通知框架会话已结束。更多...
 
(void) - notifyDidReceiveDeviceVolume:muted:
 由子类调用,以通知框架已从设备收到更新后的设备音量和静音状态。更多...
 
(void) - notifyDidReceiveDeviceStatus:
 由子类调用,以通知框架已从设备收到更新后的状态。更多...
 

方法详细信息

- (void) start

启动会话。

这是一项异步操作。必须被子类替换。

扩展 GCKSession 类。

- (void) endAndStopCasting: (BOOL)  stopCasting

结束会话。

这是一项异步操作。必须被子类替换。

Parameters
stopCastingWhether to stop casting content to the receiver.

扩展 GCKSession 类。

- (void) suspendWithReason: (GCKConnectionSuspendReason reason

因指定原因暂停会话。

这是一项异步操作。必须被子类替换。

扩展 GCKSession 类。

- (void) resume

恢复会话。

这是一项异步操作。必须被子类替换。

扩展 GCKSession 类。

- (void) notifyDidStartWithSessionID: (NSString *)  sessionID

由子类调用,以通知框架已启动会话。

Parameters
sessionIDThe session's unique ID.

扩展 GCKSession 类。

- (void) notifyDidFailToStartWithError: (NSError *)  error

由子类调用,以通知框架会话无法启动。

Parameters
errorThe error that occurred.

扩展 GCKSession 类。

- (void) notifyDidResume

由子类调用,以通知框架会话已恢复。

扩展 GCKSession 类。

- (void) notifyDidSuspendWithReason: (GCKConnectionSuspendReason reason

由子类调用,以通知框架会话已暂停。

Parameters
reasonThe reason for the suspension.

扩展 GCKSession 类。

- (void) notifyDidEndWithError: (NSError *__nullable)  error

由子类调用,以通知框架会话已结束。

Parameters
errorThe error that caused the session to end, if any. Should be nil if the session was ended intentionally.

扩展 GCKSession 类。

- (void) notifyDidReceiveDeviceVolume: (float)  volume
muted: (BOOL)  muted 

由子类调用,以通知框架已从设备收到更新后的设备音量和静音状态。

Parameters
volumeThe device's current volume. Must be in the range [0, 1.0];
mutedThe device's current mute state.

扩展 GCKSession 类。

- (void) notifyDidReceiveDeviceStatus: (NSString *__nullable)  statusText

由子类调用,以通知框架已从设备收到更新后的状态。

Parameters
statusTextThe new status.

扩展 GCKSession 类。