只能由 GCKSession 子类替换和调用的方法。
- 开始时间
- 3.0
- (void) endAndStopCasting: |
|
(BOOL) |
stopCasting |
|
结束会话。
这是一项异步操作。必须被子类替换。
- Parameters
-
stopCasting | Whether to stop casting content to the receiver. |
扩展 GCKSession 类。
- (void) notifyDidStartWithSessionID: |
|
(NSString *) |
sessionID |
|
由子类调用,以通知框架已启动会话。
- Parameters
-
sessionID | The session's unique ID. |
扩展 GCKSession 类。
- (void) notifyDidFailToStartWithError: |
|
(NSError *) |
error |
|
由子类调用,以通知框架会话无法启动。
- Parameters
-
error | The error that occurred. |
扩展 GCKSession 类。
由子类调用,以通知框架会话已暂停。
- Parameters
-
reason | The reason for the suspension. |
扩展 GCKSession 类。
- (void) notifyDidEndWithError: |
|
(NSError *__nullable) |
error |
|
由子类调用,以通知框架会话已结束。
- Parameters
-
error | The 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
-
volume | The device's current volume. Must be in the range [0, 1.0]; |
muted | The device's current mute state. |
扩展 GCKSession 类。
- (void) notifyDidReceiveDeviceStatus: |
|
(NSString *__nullable) |
statusText |
|
由子类调用,以通知框架已从设备收到更新后的状态。
- Parameters
-
statusText | The new status. |
扩展 GCKSession 类。