Plik GCKCommon.h
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Wyliczenia GCKCastState, GCKConnectionState, GCKConnectionSuspensionReason, GCKActiveInputStatus i GCKStandbyStatus.
Więcej...
|
typedef | NS_CLOSED_ENUM (NSInteger, GCKConnectionState) |
|
typedef | NS_CLOSED_ENUM (NSInteger, GCKActiveInputStatus) |
|
typedef | NS_CLOSED_ENUM (NSInteger, GCKStandbyStatus) |
|
typedef | NS_CLOSED_ENUM (NSUInteger, GCKCastState) |
|
Wyliczenia GCKCastState, GCKConnectionState, GCKConnectionSuspensionReason, GCKActiveInputStatus i GCKStandbyStatus.
Wyliczenie określające przyczyny zawieszenia połączenia.
Wyliczenie |
---|
GCKConnectionSuspensionReasonAppBackgrounded |
Połączenie zostało zawieszone, ponieważ aplikacja działa w tle.
|
GCKConnectionSuspensionReasonNetworkError |
Połączenie zostało zawieszone z powodu wejścia/wyjścia sieci lub błędu protokołu.
|
GCKConnectionSuspensionReasonNetworkNotReachable |
Połączenie zostało zawieszone, ponieważ sieć jest nieosiągalna.
|
GCKConnectionSuspensionReasonAppTerminated |
Połączenie zostało zawieszone, ponieważ aplikacja została zakończona podczas połączenia.
|
Stała ciągła zawierająca numer wersji platformy GoogleCast.
Nieprawidłowy identyfikator żądania. Jeśli metoda zwraca ten identyfikator, oznacza to, że nie udało się wysłać żądania.
Typ wyjątku wskazujący, że interfejs API został wywołany z nieprawidłowego wątku.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\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."]]