AI-generated Key Takeaways
-
GCKCommon.h defines several enumerations related to Google Cast states and statuses, including connection states, connection suspension reasons, active input status, and standby status.
-
The file includes a macro and a function, both named GCKAssertMainThread, which are used to assert if the calling thread is the main thread.
-
Three variables are defined: kGCKFrameworkVersion (framework version string), kGCKInvalidRequestID (an indicator for an invalid request), and kGCKThreadException (an exception type for invalid thread API calls).
-
The GCKCastState enum describes the possible casting states for the sender application, ranging from no devices available to being connected.
GCKCastState, GCKConnectionState, GCKConnectionSuspendReason, GCKActiveInputStatus, and GCKStandbyStatus enums. More...
Macros | |
| #define | GCK_ASSERT_MAIN_THREAD() GCKAssertMainThread(__PRETTY_FUNCTION__) |
| Asserts if the calling thread is not the main thread. More... | |
Functions | |
| void | GCKAssertMainThread (const char *function) |
| Asserts if the calling thread is not the main thread. More... | |
Variables | |
| NSString *const | kGCKFrameworkVersion |
| A string constant containing the version number of the GoogleCast framework. More... | |
| const NSInteger | kGCKInvalidRequestID |
| An invalid request ID; if a method returns this request ID, it means that the request could not be made. More... | |
| NSString *const | kGCKThreadException |
| An exception type indicating that an API was called from an invalid thread. More... | |
Detailed Description
GCKCastState, GCKConnectionState, GCKConnectionSuspendReason, GCKActiveInputStatus, and GCKStandbyStatus enums.
Macro Definition Documentation
| #define GCK_ASSERT_MAIN_THREAD | ( | ) | GCKAssertMainThread(__PRETTY_FUNCTION__) |
Asserts if the calling thread is not the main thread.
Enumeration Type Documentation
| enum GCKConnectionState |
Enum defining Cast connection states.
Enum defining the reasons for a connection becoming suspended.
| enum GCKActiveInputStatus |
An enum describing the active input status states.
This status indicates whether a receiver device is currently the active input on its connected TV or AVR.
| Enumerator | |
|---|---|
| GCKActiveInputStatusUnknown |
The active input status is unknown. |
| GCKActiveInputStatusInactive |
The input is inactive. |
| GCKActiveInputStatusActive |
The input is active. |
| enum GCKStandbyStatus |
An enum describing the standby status states.
This status indicates whether a receiver device's connected TV or AVR is currently in "standby" mode.
| Enumerator | |
|---|---|
| GCKStandbyStatusUnknown |
The standby status is unknown. |
| GCKStandbyStatusInactive |
The device is not in standby mode. |
| GCKStandbyStatusActive |
The device is in standby mode. |
| enum GCKCastState |
An enum describing the possible casting states for the sender application.
Function Documentation
| void GCKAssertMainThread | ( | const char * | function | ) |
Asserts if the calling thread is not the main thread.
Variable Documentation
| kGCKFrameworkVersion |
A string constant containing the version number of the GoogleCast framework.
| kGCKInvalidRequestID |
An invalid request ID; if a method returns this request ID, it means that the request could not be made.
| kGCKThreadException |
An exception type indicating that an API was called from an invalid thread.