# GCKCommon.h File

[Enumerations](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#enum-members) \| [Functions](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#func-members) \| [Variables](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#var-members) GCKCommon.h File Reference GCKCastState, GCKConnectionState, GCKConnectionSuspendReason, GCKActiveInputStatus, and GCKStandbyStatus enums.
[More...](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#details)

|---|---|
| ## Enumerations ||
| enum | [GCKConnectionSuspendReason](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#a9ac76146a1ad598bb34070e314876a37) { **GCKConnectionSuspendReasonUnknown** = -1, **GCKConnectionSuspendReasonNone** = 0, [GCKConnectionSuspendReasonAppBackgrounded](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#a9ac76146a1ad598bb34070e314876a37a3beae0a74cb6e012ea141e4de0b6f236) = 1, [GCKConnectionSuspendReasonNetworkError](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#a9ac76146a1ad598bb34070e314876a37af6a10736daef7dec6b223762c5e9ba32) = 2, [GCKConnectionSuspendReasonNetworkNotReachable](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#a9ac76146a1ad598bb34070e314876a37a31ee22db9cb40a6b6e8720569601997c) = 3, [GCKConnectionSuspendReasonAppTerminated](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#a9ac76146a1ad598bb34070e314876a37ab8059192a4d1f1e55bf9eebacff80cdc) = 4 } |
|   | Enum defining the reasons for a connection becoming suspended. [More...](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#a9ac76146a1ad598bb34070e314876a37) |
|   ||

|---|---|
| ## Functions ||
| typedef | **NS_CLOSED_ENUM** (NSInteger, GCKConnectionState) |
|   ||
| typedef | **NS_CLOSED_ENUM** (NSInteger, GCKActiveInputStatus) |
|   ||
| typedef | **NS_CLOSED_ENUM** (NSInteger, GCKStandbyStatus) |
|   ||
| typedef | **NS_CLOSED_ENUM** (NSUInteger, GCKCastState) |
|   ||

|---|---|
| ## Variables ||
| NSString \*const | [kGCKFrameworkVersion](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#a7b9ba3834f883cf1a100a8da0fdc42b3) |
|   | A string constant containing the version number of the GoogleCast framework. [More...](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#a7b9ba3834f883cf1a100a8da0fdc42b3) |
|   ||
| const NSInteger | [kGCKInvalidRequestID](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#aad76567f243bc1b4fb113abd97bf3327) |
|   | An invalid request ID; if a method returns this request ID, it means that the request could not be made. [More...](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#aad76567f243bc1b4fb113abd97bf3327) |
|   ||
| NSString \*const | [kGCKThreadException](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#a2b77feb60f085716a32a446407799c5c) |
|   | An exception type indicating that an API was called from an invalid thread. [More...](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#a2b77feb60f085716a32a446407799c5c) |
|   ||

## Detailed Description

GCKCastState, GCKConnectionState, GCKConnectionSuspendReason, GCKActiveInputStatus, and GCKStandbyStatus enums.

## Enumeration Type Documentation

|---|
| enum [GCKConnectionSuspendReason](https://developers.google.com/cast/docs/reference/ios/g_c_k_common_8h#a9ac76146a1ad598bb34070e314876a37) |

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. |
| GCKConnectionSuspendReasonAppTerminated | The connection was suspended because app was terminated while connected. |

## 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.