GCKSession(受保护的)类别
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
要替换并仅由 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: |
|
(NSError *) |
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。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-12-05。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]