GCKSession(受保护的)类别

GCKSession(受保护的)类别参考

概览

要替换并仅由 GCKSession 子类调用的方法。

辛塞
3.0

实例方法摘要

(void) - start
 启动会话。更多...
 
(void) - endWithAction:
 以指定操作结束会话。更多...
 
(void) - notifyDidStartWithSessionID:
 由子类调用以通知框架会话已启动。更多...
 
(void) - notifyDidFailToStartWithError:
 由子类调用以通知框架会话失败。更多...
 
(void) - notifyDidEndWithError:willTryToResume:
 由子类调用以通知框架会话已结束。更多...
 
(void) - notifyDidReceiveDeviceVolume:muted:
 由子类调用,以通知框架已收到设备已更新的设备音量和静音状态。更多...
 
(void) - notifyDidReceiveDeviceStatus:
 由子类调用,以通知框架已从设备收到更新状态。更多...
 
(void) - notifyDidSuspendWithReason:
 已弃用,请勿使用 - 作为空操作实现。更多...
 
(void) - notifyDidResume
 已弃用,请勿使用 - 作为空操作实现。更多...
 

方法详细信息

- (void) start

启动会话。

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

扩展类 GCKSession

- (void) endWithAction: (GCKSessionEndAction action

以指定操作结束会话。

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

Parameters
actionThe action to take when ending the session; see GCKSessionEndAction for more details.

扩展类 GCKSession

- (void) notifyDidStartWithSessionID: (NSString *)  sessionID

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

Parameters
sessionIDThe session's unique ID.

扩展类 GCKSession

- (void) notifyDidFailToStartWithError: (NSError *)  error

由子类调用以通知框架会话失败。

Parameters
errorThe error that occurred.

扩展类 GCKSession

- (void) notifyDidEndWithError: (nullable NSError *)  error
willTryToResume: (BOOL)  willTryToResume 

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

Parameters
errorThe error that caused the session to end, if any. Should be nil if the session was ended intentionally.
willTryToResumeWhether the session will try to resume itself automatically.

扩展类 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: (nullable NSString *)  statusText

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

Parameters
statusTextThe new status.

扩展类 GCKSession

- (void) notifyDidSuspendWithReason: (GCKConnectionSuspendReason reason

已弃用,请勿使用 - 作为空操作实现。

Deprecated:
不要打电话。

扩展类 GCKSession

- (void) notifyDidResume

已弃用,请勿使用 - 作为空操作实现。

Deprecated:
不要打电话。

扩展类 GCKSession