繼承 <NSObjectNSObject>。
在工作階段即將開始時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The session. |
在工作階段成功啟動時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The session. |
在投放工作階段即將開始時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The session. |
在成功開始投放工作階段時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
當工作階段即將按要求或因錯誤而結束時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The session. |
- (void) sessionManager: |
|
(GCKSessionManager *) |
sessionManager |
didEndSession: |
|
(GCKSession *) |
session |
withError: |
|
(nullable NSError *) |
error |
|
|
| |
|
optional |
工作階段結束 (依要求或錯誤) 時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The session. |
error | The error, if any; otherwise nil. |
當投放工作階段即將根據要求或發生錯誤時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The session. |
投放工作階段結束時 (無論是要求或發生錯誤) 時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
error | The error, if any; otherwise nil. |
- (void) sessionManager: |
|
(GCKSessionManager *) |
sessionManager |
didFailToStartSession: |
|
(GCKSession *) |
session |
withError: |
|
(NSError *) |
error |
|
|
| |
|
optional |
在工作階段無法開始時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The session. |
error | The error. |
投放工作階段無法開始時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
error | The error. |
在工作階段暫停時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The session. |
reason | The reason for the suspension. |
在投放工作階段暫停時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
reason | The reason for the suspension. |
在工作階段即將恢復時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The session. |
成功恢復工作階段時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The session. |
在投放工作階段即將恢復時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The session. |
成功恢復投放工作階段時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
與此工作階段相關聯的裝置在某些方面發生變更 (例如好記名稱已變更) 時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
device | The updated device object. |
- 開始時間
- 3.2
- (void) sessionManager: |
|
(GCKSessionManager *) |
sessionManager |
session: |
|
(GCKSession *) |
session |
didReceiveDeviceVolume: |
|
(float) |
volume |
muted: |
|
(BOOL) |
muted |
|
|
| |
|
optional |
收到工作階段的更新音量和靜音狀態時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The session. |
volume | The current volume, in the range [0.0, 1.0]. |
muted | The current mute state. |
- (void) sessionManager: |
|
(GCKSessionManager *) |
sessionManager |
castSession: |
|
(GCKCastSession *) |
session |
didReceiveDeviceVolume: |
|
(float) |
volume |
muted: |
|
(BOOL) |
muted |
|
|
| |
|
optional |
接收到投放工作階段更新音量和靜音狀態時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
volume | The current volume, in the range [0.0, 1.0]. |
muted | The current mute state. |
- (void) sessionManager: |
|
(GCKSessionManager *) |
sessionManager |
session: |
|
(GCKSession *) |
session |
didReceiveDeviceStatus: |
|
(nullable NSString *) |
statusText |
|
|
| |
|
optional |
收到工作階段的更新裝置狀態時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The session. |
statusText | The new device status text. |
- (void) sessionManager: |
|
(GCKSessionManager *) |
sessionManager |
castSession: |
|
(GCKCastSession *) |
session |
didReceiveDeviceStatus: |
|
(nullable NSString *) |
statusText |
|
|
| |
|
optional |
接收到投放工作階段的更新裝置狀態時呼叫。
- Parameters
-
sessionManager | The session manager. |
session | The Cast session. |
statusText | The new device status text. |
- (void) sessionManager: |
|
(GCKSessionManager *) |
sessionManager |
didUpdateDefaultSessionOptionsForDeviceCategory: |
|
(NSString *) |
category |
|
|
| |
|
optional |
針對特定裝置類別變更預設工作階段選項時呼叫此方法。
- Parameters
-
sessionManager | The session manager. |
category | The device category. |
- 開始時間
- 4.0