只能由 GCKSession 子类替换和调用的方法。
- 开始时间
- 3.0
结束具有指定操作的会话。
这是一项异步操作。必须被子类替换。
- Parameters
-
action | The action to take when ending the session; see GCKSessionEndAction for more details. |
扩展 GCKSession 类。
- (void) notifyDidStartWithSessionID: |
|
(NSString *) |
sessionID |
|
由子类调用,以通知框架已启动会话。
- Parameters
-
sessionID | The session's unique ID. |
扩展 GCKSession 类。
- (void) notifyDidFailToStartWithError: |
|
(GCKError *) |
error |
|
由子类调用,以通知框架会话无法启动。
- Parameters
-
error | The error that occurred. |
扩展 GCKSession 类。
- (void) notifyDidEndWithError: |
|
(nullable NSError *) |
error |
willTryToResume: |
|
(BOOL) |
willTryToResume |
|
|
| |
由子类调用,以通知框架会话已结束。
- Parameters
-
error | The error that caused the session to end, if any. Should be nil if the session was ended intentionally. |
willTryToResume | Whether the session will try to resume itself automatically. |
扩展 GCKSession 类。
- (void) notifyDidReceiveDeviceVolume: |
|
(float) |
volume |
muted: |
|
(BOOL) |
muted |
|
|
| |
由子类调用,以通知框架已从设备收到更新后的设备音量和静音状态。
- Parameters
-
volume | The device's current volume. Must be in the range [0, 1.0]; |
muted | The device's current mute state. |
扩展 GCKSession 类。
- (void) notifyDidReceiveDeviceStatus: |
|
(nullable NSString *) |
statusText |
|
由子类调用,以通知框架已从设备收到更新后的状态。
- Parameters
-
statusText | The new status. |
扩展 GCKSession 类。