僅由 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 |
|
|
| |
子類別會呼叫此 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: |
|
(nullable NSString *) |
statusText |
|
子類別會呼叫,以通知系統已從裝置收到更新狀態。
- Parameters
-
statusText | The new status. |
擴充類別 GCKSession。