GCKCommon.h File

  • GCKCommon.h defines various enums related to Cast states, connection states, and reasons for connection suspension.

  • The file includes functions and variables, such as the framework version and indicators for invalid requests or thread exceptions.

  • The GCKConnectionSuspendReason enum specifies why a connection might be suspended, including app backgrounding, network errors, or app termination.

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

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

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

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.

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.