GCKSession(受保護的) 類別

GCKSession(受保護的) 類別參考資料

總覽

僅由 GCKSession 子類別覆寫並呼叫的方法。

開始時間
3.0

執行個體方法摘要

(void) - start
 啟動工作階段。更多...
 
(void) - endAndStopCasting:
 結束工作階段。更多...
 
(void) - suspendWithReason:
 基於指定原因暫停工作階段。更多...
 
(void) - resume
 繼續執行工作階段。更多...
 
(void) - notifyDidStartWithSessionID:
 子類別會呼叫,以通知架構已啟動工作階段。更多...
 
(void) - notifyDidFailToStartWithError:
 子類別會呼叫以通知架構,說明工作階段無法啟動。更多...
 
(void) - notifyDidResume
 子類別會呼叫,以通知架構已繼續工作階段。更多...
 
(void) - notifyDidSuspendWithReason:
 子類別會呼叫以通知架構,說明工作階段已暫停。更多...
 
(void) - notifyDidEndWithError:
 子類別會呼叫以通知架構,說明工作階段已結束。更多...
 
(void) - notifyDidReceiveDeviceVolume:muted:
 子類別會呼叫此 API,通知架構已收到裝置傳來的更新音量和靜音狀態。更多...
 
(void) - notifyDidReceiveDeviceStatus:
 子類別會呼叫,以通知系統已從裝置收到更新狀態。更多...
 

方法詳細資料

- (void) start

啟動工作階段。

這是非同步作業。必須由子類別覆寫。

擴充類別 GCKSession

- (void) endAndStopCasting: (BOOL)  stopCasting

結束工作階段。

這是非同步作業。必須由子類別覆寫。

Parameters
stopCastingWhether to stop casting content to the receiver.

擴充類別 GCKSession

- (void) suspendWithReason: (GCKConnectionSuspendReason reason

基於指定原因暫停工作階段。

這是非同步作業。必須由子類別覆寫。

擴充類別 GCKSession

- (void) resume

繼續執行工作階段。

這是非同步作業。必須由子類別覆寫。

擴充類別 GCKSession

- (void) notifyDidStartWithSessionID: (NSString *)  sessionID

子類別會呼叫,以通知架構已啟動工作階段。

Parameters
sessionIDThe session's unique ID.

擴充類別 GCKSession

- (void) notifyDidFailToStartWithError: (NSError *)  error

子類別會呼叫以通知架構,說明工作階段無法啟動。

Parameters
errorThe error that occurred.

擴充類別 GCKSession

- (void) notifyDidResume

子類別會呼叫,以通知架構已繼續工作階段。

擴充類別 GCKSession

- (void) notifyDidSuspendWithReason: (GCKConnectionSuspendReason reason

子類別會呼叫以通知架構,說明工作階段已暫停。

Parameters
reasonThe reason for the suspension.

擴充類別 GCKSession

- (void) notifyDidEndWithError: (NSError *__nullable)  error

子類別會呼叫以通知架構,說明工作階段已結束。

Parameters
errorThe 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
volumeThe device's current volume. Must be in the range [0, 1.0];
mutedThe device's current mute state.

擴充類別 GCKSession

- (void) notifyDidReceiveDeviceStatus: (NSString *__nullable)  statusText

子類別會呼叫,以通知系統已從裝置收到更新狀態。

Parameters
statusTextThe new status.

擴充類別 GCKSession