فایل GCKSession+Protected.h
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
فهرست GCKSessionEndAction و GCKSessionState. بیشتر...
فهرست GCKSessionEndAction و GCKSessionState.
Enum عملکردی را که باید هنگام پایان دادن به یک جلسه Cast انجام شود را مشخص می کند.
- از آنجا که
- 4.0
شمارشگر |
---|
GCKSessionEndActionLeave | به صراحت جلسه را روی گیرنده ترک می کند. |
GCKSessionEndActionDisconnect | بدون صراحت از جلسه جدا می شود. |
GCKSessionEndActionStopCasting | برنامه Casting فعلی را روی گیرنده متوقف می کند و سپس جلسه را پایان می دهد. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThis document outlines the \u003ccode\u003eGCKSession+Protected.h\u003c/code\u003e file, which focuses on ending a Cast session.\u003c/p\u003e\n"],["\u003cp\u003eIt introduces the \u003ccode\u003eGCKSessionEndAction\u003c/code\u003e enum, defining actions like leaving, disconnecting, or stopping casting when ending a session.\u003c/p\u003e\n"],["\u003cp\u003eIt includes the \u003ccode\u003eGCKSession(Protected)\u003c/code\u003e category, providing methods to manage session behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGCKSessionEndAction\u003c/code\u003e enum is available since version 4.0 of the framework.\u003c/p\u003e\n"]]],["The content details `GCKSession(Protected)` category methods, which are designated for overriding by `GCKSession` subclasses. It also defines `GCKSessionEndAction`, an enumeration specifying actions when ending a Cast session, which are: `GCKSessionEndActionLeave` (explicitly leave), `GCKSessionEndActionDisconnect` (disconnect without leaving), and `GCKSessionEndActionStopCasting` (stop casting and end). `GCKSessionState` enum is also mentioned.\n"],null,["# GCKSession+Protected.h File\n\n[Classes](#nested-classes) \\| [Enumerations](#enum-members) \nGCKSession+Protected.h File Reference \nGCKSessionEndAction and GCKSessionState enums.\n[More...](#details)\n\n|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Classes ------- ||\n| category | [GCKSession(Protected)](/cast/docs/reference/ios/category_g_c_k_session_07_protected_08) |\n| | Methods to be overridden and called by [GCKSession](/cast/docs/reference/ios/interface_g_c_k_session \"An abstract base class representing a session with a receiver device. \") subclasses only. [More...](/cast/docs/reference/ios/category_g_c_k_session_07_protected_08#details) |\n| ||\n\n|------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Enumerations ------------ ||\n| enum | [GCKSessionEndAction](/cast/docs/reference/ios/g_c_k_session_09_protected_8h#a8b2ec2c03fb85ca2f7541cfebadb96cf) { [GCKSessionEndActionLeave](/cast/docs/reference/ios/g_c_k_session_09_protected_8h#a8b2ec2c03fb85ca2f7541cfebadb96cfaedc676b8d7c53897eb021fd53f03655a) = 1, [GCKSessionEndActionDisconnect](/cast/docs/reference/ios/g_c_k_session_09_protected_8h#a8b2ec2c03fb85ca2f7541cfebadb96cfab7acbdccad58825fcd86874c550f9171) = 2, [GCKSessionEndActionStopCasting](/cast/docs/reference/ios/g_c_k_session_09_protected_8h#a8b2ec2c03fb85ca2f7541cfebadb96cfa90383ec7fe5126a44eb477e7b3954a3f) = 3 } |\n| | Enum defining the action to take when ending a Cast session. [More...](/cast/docs/reference/ios/g_c_k_session_09_protected_8h#a8b2ec2c03fb85ca2f7541cfebadb96cf) |\n| ||\n\nDetailed Description\n--------------------\n\nGCKSessionEndAction and GCKSessionState enums.\n\nEnumeration Type Documentation\n------------------------------\n\n|----------------------------------------------------------------------------------------------------------------------|\n| enum [GCKSessionEndAction](/cast/docs/reference/ios/g_c_k_session_09_protected_8h#a8b2ec2c03fb85ca2f7541cfebadb96cf) |\n\nEnum defining the action to take when ending a Cast session.\n\nSince\n: 4.0\n\n| Enumerator ||\n|--------------------------------|------------------------------------------------------------------------------------|\n| GCKSessionEndActionLeave | Explicitly leaves the session on the receiver. |\n| GCKSessionEndActionDisconnect | Disconnects from the session without explicitity leaving it. |\n| GCKSessionEndActionStopCasting | Stops the currently Casting application on the receiver and then ends the session. |"]]