GCKCommon.h 文件
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
GCKCastState、GCKConnectionState、GCKConnectionSuspendReason、GCKActiveInputStatus 和 GCKStandbyStatus 枚举。
更多...
|
typedef | NS_CLOSED_ENUM (NSInteger, GCKConnectionState) |
|
typedef | NS_CLOSED_ENUM (NSInteger, GCKActiveInputStatus) |
|
typedef | NS_CLOSED_ENUM (NSInteger, GCKStandbyStatus) |
|
typedef | NS_CLOSED_ENUM (NSUInteger, GCKCastState) |
|
GCKCastState、GCKConnectionState、GCKConnectionSuspendReason、GCKActiveInputStatus 和 GCKStandbyStatus 枚举。
定义连接暂停原因的枚举。
枚举器 |
---|
GCKConnectionSuspendReasonAppBackgrounded |
连接已暂停,因为应用将转入后台。
|
GCKConnectionSuspendReasonNetworkError |
由于网络 I/O 或协议错误,连接已暂停。
|
GCKConnectionSuspendReasonNetworkNotReachable |
由于无法访问网络,连接已暂停。
|
GCKConnectionSuspendReasonAppTerminated |
连接已暂停,因为应用在连接时被终止。
|
包含 GoogleCast 框架版本号的字符串常量。
请求 ID 无效;如果某个方法返回此请求 ID,则表示无法发出请求。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe GCKCommon.h file defines enums for Cast state, connection state, connection suspension reasons, active input status, and standby status.\u003c/p\u003e\n"],["\u003cp\u003eIt includes an enum, \u003ccode\u003eGCKConnectionSuspendReason\u003c/code\u003e, which specifies the reasons behind a connection suspension, such as app backgrounding, network errors, and app termination.\u003c/p\u003e\n"],["\u003cp\u003eThe file declares constants like \u003ccode\u003ekGCKFrameworkVersion\u003c/code\u003e for the framework version, \u003ccode\u003ekGCKInvalidRequestID\u003c/code\u003e representing an invalid request, and \u003ccode\u003ekGCKThreadException\u003c/code\u003e indicating an API call from an invalid thread.\u003c/p\u003e\n"],["\u003cp\u003eIt contains typedefs for GCKConnectionState, GCKActiveInputStatus, GCKStandbyStatus, and GCKCastState, all of which are closed enums using NSInteger or NSUInteger.\u003c/p\u003e\n"]]],["This document outlines key elements within the GCKCommon.h file, which contains enumerations, functions, and variables related to Google Cast. The `GCKConnectionSuspendReason` enum details reasons for connection suspension, such as the app being backgrounded, network errors, network unreachability, or app termination. Other enums include `GCKCastState`, `GCKConnectionState`, `GCKActiveInputStatus`, and `GCKStandbyStatus`. Notable variables are `kGCKFrameworkVersion` (framework version), `kGCKInvalidRequestID` (for failed requests), and `kGCKThreadException` (invalid thread calls).\n"],null,["# GCKCommon.h File\n\n[Enumerations](#enum-members) \\| [Functions](#func-members) \\| [Variables](#var-members) \nGCKCommon.h File Reference \nGCKCastState, GCKConnectionState, GCKConnectionSuspendReason, GCKActiveInputStatus, and GCKStandbyStatus enums.\n[More...](#details)\n\n|------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Enumerations ------------ ||\n| enum | [GCKConnectionSuspendReason](/cast/docs/reference/ios/g_c_k_common_8h#a9ac76146a1ad598bb34070e314876a37) { **GCKConnectionSuspendReasonUnknown** = -1, **GCKConnectionSuspendReasonNone** = 0, [GCKConnectionSuspendReasonAppBackgrounded](/cast/docs/reference/ios/g_c_k_common_8h#a9ac76146a1ad598bb34070e314876a37a3beae0a74cb6e012ea141e4de0b6f236) = 1, [GCKConnectionSuspendReasonNetworkError](/cast/docs/reference/ios/g_c_k_common_8h#a9ac76146a1ad598bb34070e314876a37af6a10736daef7dec6b223762c5e9ba32) = 2, [GCKConnectionSuspendReasonNetworkNotReachable](/cast/docs/reference/ios/g_c_k_common_8h#a9ac76146a1ad598bb34070e314876a37a31ee22db9cb40a6b6e8720569601997c) = 3, [GCKConnectionSuspendReasonAppTerminated](/cast/docs/reference/ios/g_c_k_common_8h#a9ac76146a1ad598bb34070e314876a37ab8059192a4d1f1e55bf9eebacff80cdc) = 4 } |\n| | Enum defining the reasons for a connection becoming suspended. [More...](/cast/docs/reference/ios/g_c_k_common_8h#a9ac76146a1ad598bb34070e314876a37) |\n| ||\n\n|---------|------------------------------------------------------|\n| Functions --------- ||\n| typedef | **NS_CLOSED_ENUM** (NSInteger, GCKConnectionState) |\n| ||\n| typedef | **NS_CLOSED_ENUM** (NSInteger, GCKActiveInputStatus) |\n| ||\n| typedef | **NS_CLOSED_ENUM** (NSInteger, GCKStandbyStatus) |\n| ||\n| typedef | **NS_CLOSED_ENUM** (NSUInteger, GCKCastState) |\n| ||\n\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Variables --------- ||\n| NSString \\*const | [kGCKFrameworkVersion](/cast/docs/reference/ios/g_c_k_common_8h#a7b9ba3834f883cf1a100a8da0fdc42b3) |\n| | A string constant containing the version number of the GoogleCast framework. [More...](#a7b9ba3834f883cf1a100a8da0fdc42b3) |\n| ||\n| const NSInteger | [kGCKInvalidRequestID](/cast/docs/reference/ios/g_c_k_common_8h#aad76567f243bc1b4fb113abd97bf3327) |\n| | An invalid request ID; if a method returns this request ID, it means that the request could not be made. [More...](#aad76567f243bc1b4fb113abd97bf3327) |\n| ||\n| NSString \\*const | [kGCKThreadException](/cast/docs/reference/ios/g_c_k_common_8h#a2b77feb60f085716a32a446407799c5c) |\n| | An exception type indicating that an API was called from an invalid thread. [More...](#a2b77feb60f085716a32a446407799c5c) |\n| ||\n\nDetailed Description\n--------------------\n\nGCKCastState, GCKConnectionState, GCKConnectionSuspendReason, GCKActiveInputStatus, and GCKStandbyStatus enums.\n\nEnumeration Type Documentation\n------------------------------\n\n|---------------------------------------------------------------------------------------------------------------|\n| enum [GCKConnectionSuspendReason](/cast/docs/reference/ios/g_c_k_common_8h#a9ac76146a1ad598bb34070e314876a37) |\n\nEnum defining the reasons for a connection becoming suspended.\n\n| Enumerator ||\n|-----------------------------------------------|------------------------------------------------------------------------------------|\n| GCKConnectionSuspendReasonAppBackgrounded | The connection was suspended because the application is going into the background. |\n| GCKConnectionSuspendReasonNetworkError | The connection was suspended because of a network I/O or protocol error. |\n| GCKConnectionSuspendReasonNetworkNotReachable | The connection was suspended because the network is not reachable. |\n| GCKConnectionSuspendReasonAppTerminated | The connection was suspended because app was terminated while connected. |\n\nVariable Documentation\n----------------------\n\n|----------------------|\n| kGCKFrameworkVersion |\n\nA string constant containing the version number of the GoogleCast framework. \n\n|----------------------|\n| kGCKInvalidRequestID |\n\nAn invalid request ID; if a method returns this request ID, it means that the request could not be made. \n\n|---------------------|\n| kGCKThreadException |\n\nAn exception type indicating that an API was called from an invalid thread."]]