GCKSession(受保護的) 類別
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
僅由 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 |
|
|
| |
子類別會呼叫此 API,通知架構已收到裝置傳來的更新音量和靜音狀態。
- 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。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-02 (世界標準時間)。
[{
"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":"其他"
}]