GCKCommon.h File
Stay organized with collections
Save and categorize content based on your preferences.
GCKCastState, GCKConnectionState, GCKConnectionSuspendReason, GCKActiveInputStatus, and GCKStandbyStatus enums.
More...
|
enum | GCKConnectionState { GCKConnectionStateDisconnected = 0,
GCKConnectionStateConnecting = 1,
GCKConnectionStateConnected = 2,
GCKConnectionStateDisconnecting = 3
} |
| Enum defining Cast connection states. More...
|
|
enum | GCKConnectionSuspendReason { GCKConnectionSuspendReasonAppBackgrounded = 1,
GCKConnectionSuspendReasonNetworkError = 2,
GCKConnectionSuspendReasonNetworkNotReachable = 3
} |
| Enum defining the reasons for a connection becoming suspended. More...
|
|
enum | GCKActiveInputStatus { GCKActiveInputStatusUnknown = -1,
GCKActiveInputStatusInactive = 0,
GCKActiveInputStatusActive = 1
} |
| An enum describing the active input status states. More...
|
|
enum | GCKStandbyStatus { GCKStandbyStatusUnknown = -1,
GCKStandbyStatusInactive = 0,
GCKStandbyStatusActive = 1
} |
| An enum describing the standby status states. More...
|
|
enum | GCKCastState { GCKCastStateNoDevicesAvailable = 0,
GCKCastStateNotConnected = 1,
GCKCastStateConnecting = 2,
GCKCastStateConnected = 3
} |
| An enum describing the possible casting states for the sender application. More...
|
|
GCKCastState, GCKConnectionState, GCKConnectionSuspendReason, GCKActiveInputStatus, and GCKStandbyStatus enums.
Asserts if the calling thread is not the main thread.
Enum defining Cast connection states.
Enumerator |
---|
GCKConnectionStateDisconnected |
Disconnected from the device or application.
|
GCKConnectionStateConnecting |
Connecting to the device or application.
|
GCKConnectionStateConnected |
Connected to the device or application.
|
GCKConnectionStateDisconnecting |
Disconnecting from the device.
|
Enum defining the reasons for a connection becoming suspended.
Enumerator |
---|
GCKConnectionSuspendReasonAppBackgrounded |
The connection was suspended because the application is going into the background.
|
GCKConnectionSuspendReasonNetworkError |
The connection was suspended because of a network I/O or protocol error.
|
GCKConnectionSuspendReasonNetworkNotReachable |
The connection was suspended because the network is not reachable.
|
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.
|
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.
|
An enum describing the possible casting states for the sender application.
Enumerator |
---|
GCKCastStateNoDevicesAvailable |
No Cast session is established, and no Cast devices are available.
|
GCKCastStateNotConnected |
No Cast session is establishd, and Cast devices are available.
|
GCKCastStateConnecting |
A Cast session is being established.
|
GCKCastStateConnected |
A Cast session is established.
|
void GCKAssertMainThread |
( |
const char * |
function | ) |
|
Asserts if the calling thread is not the main thread.
A string constant containing the version number of the GoogleCast framework.
An invalid request ID; if a method returns this request ID, it means that the request could not be made.
An exception type indicating that an API was called from an invalid thread.
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\u003eThe \u003ccode\u003eGCKCommon.h\u003c/code\u003e file defines enums for Cast connection, suspend reason, active input, standby, and overall cast states.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a macro, \u003ccode\u003eGCK_ASSERT_MAIN_THREAD\u003c/code\u003e, to ensure code runs on the main thread.\u003c/p\u003e\n"],["\u003cp\u003eThe file provides a function, \u003ccode\u003eGCKAssertMainThread\u003c/code\u003e, which asserts if not called from the main thread.\u003c/p\u003e\n"],["\u003cp\u003eIt declares global variables like \u003ccode\u003ekGCKFrameworkVersion\u003c/code\u003e for the framework's version and \u003ccode\u003ekGCKInvalidRequestID\u003c/code\u003e for signaling invalid requests.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ekGCKThreadException\u003c/code\u003e is a constant representing an exception when an API is invoked from an incorrect thread.\u003c/p\u003e\n"]]],[],null,[]]