<GCKGenericChannel 委派> 通訊協定(&L)
    
    
      
    
    
      
      透過集合功能整理內容
    
    
      
      你可以依據偏好儲存及分類內容。
    
  
    
  
      
    
  
  
  
  
  
  
    
    
    
繼承 <GCKCastChannelNSObject>。
      
        
          | - (void) castChannel: |  | (GCKGenericChannel *) | channel | 
        
          | didReceiveTextMessage: |  | (NSString *) | message | 
        
          | withNamespace: |  | (NSString *) | protocolNamespace | 
        
          |  |  |  |  | 
      
 
 
連接頻道時呼叫,表示訊息現可透過頻道與投放裝置交換。
- Parameters
- 
  
  
 
 
在頻道中斷連線時呼叫,表示無法再透過頻道與投放裝置交換訊息。
- Parameters
- 
  
  
 
 
  
  | 
        
          | - (void) castChannel: |  | (GCKCastChannel *) | channel |  
          | didChangeWritableState: |  | (BOOL) | writable |  
          |  |  |  |  |  | optional | 
 
頻道的可寫入狀態變更時呼叫。
- Parameters
- 
  
    | channel | The channel. |  | writable | Whether the channel is now writable. |  
 
- 開始時間
- 4.0 
 
 
 
  
  
  
 
  
    
    
    
  
  
  除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
  上次更新時間:2025-07-25 (世界標準時間)。
  
  
  
    
      [[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[],["The `GCKGenericChannelDelegate` protocol defines methods for handling channel events.  It notifies when a text message is received via `castChannel:didReceiveTextMessage:withNamespace:`. It also reports connection and disconnection events via `castChannelDidConnect:` and `castChannelDidDisconnect:`, enabling message exchange or indicating its termination. The protocol informs of changes in the channel's writable state through `castChannel:didChangeWritableState:`, specifying whether messages can be sent.\n"]]