AI-generated Key Takeaways
-
The
GCKCommon.h
file defines enums for Cast connection, suspend reason, active input, standby, and overall cast states. -
It includes a macro,
GCK_ASSERT_MAIN_THREAD
, to ensure code runs on the main thread. -
The file provides a function,
GCKAssertMainThread
, which asserts if not called from the main thread. -
It declares global variables like
kGCKFrameworkVersion
for the framework's version andkGCKInvalidRequestID
for signaling invalid requests. -
kGCKThreadException
is a constant representing an exception when an API is invoked from an incorrect thread.
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.