GCKCommon.h File

GCKCommon.h File Reference

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

Enumerations

enum  GCKConnectionState { GCKConnectionStateDisconnected = 0, GCKConnectionStateConnecting = 1, GCKConnectionStateConnected = 2, GCKConnectionStateDisconnecting = 3 }
 Enum defining Cast connection states. More...
 
enum  GCKConnectionSuspendReason {
  GCKConnectionSuspendReasonUnknown = -1, GCKConnectionSuspendReasonNone = 0, GCKConnectionSuspendReasonAppBackgrounded = 1, GCKConnectionSuspendReasonNetworkError = 2,
  GCKConnectionSuspendReasonNetworkNotReachable = 3, GCKConnectionSuspendReasonAppTerminated = 4
}
 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...
 

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.

Enumeration Type Documentation

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.

GCKConnectionSuspendReasonAppTerminated 

The connection was suspended because app was terminated while connected.

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.

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.

Send feedback about...