پروتکل <GCKGenericChannelDelegate>
پروتکل نمایندگی GCKGenericChannel .
<GCKCastChannelNSObject> را به ارث می برد.
- (void) castChannel: |
|
( GCKGenericChannel *) |
channel |
didReceiveTextMessage: |
|
(NSString *) |
message |
withNamespace: |
|
(NSString *) |
protocolNamespace |
|
|
| |
زمانی که پیامک در کانال دریافت شده باشد تماس گرفته می شود.
هنگامی که کانال متصل شده است تماس گرفته می شود، که نشان می دهد اکنون می توان پیام ها را با دستگاه Cast از طریق کانال رد و بدل کرد.
هنگامی که کانال قطع شده است تماس گرفته می شود، که نشان می دهد دیگر نمی توان پیام ها را با دستگاه Cast از طریق کانال رد و بدل کرد.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2022-12-05 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2022-12-05 بهوقت ساعت هماهنگ جهانی."],[[["The `GCKGenericChannelDelegate` protocol defines methods to handle communication events within a Google Cast channel."],["It provides callbacks for receiving text messages, channel connections, and disconnections."],["`castChannel:didReceiveTextMessage:withNamespace:` is called when a text message is received on the channel."],["`castChannelDidConnect:` is called when the channel is connected and ready for message exchange."],["`castChannelDidDisconnect:` is called when the channel is disconnected, halting message exchange."]]],[]]