GCKSession+Protected.h File
Stay organized with collections
Save and categorize content based on your preferences.
GCKSessionEndAction and GCKSessionState enums.
More...
GCKSessionEndAction and GCKSessionState enums.
Enum defining the action to take when ending a Cast session.
- Since
- 4.0
Enumerator |
---|
GCKSessionEndActionLeave |
Explicitly leaves the session on the receiver.
|
GCKSessionEndActionDisconnect |
Disconnects from the session without explicitity leaving it.
|
GCKSessionEndActionStopCasting |
Stops the currently Casting application on the receiver and then ends the session.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\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,["[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 \nGCKSessionEndAction and GCKSessionState enums.\n\nEnumeration Type Documentation \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. |"]]