Protokół <GCKGameManagerChannelDelegate>
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Protokół przekazywania GCKGameManagerChannel.
- Deprecated:
- Interfejs Game Manager API nie jest już obsługiwany i zostanie usunięty w kolejnej wersji.
Dziedziczy obiekt <GCKCastChannelNSObject>.
Wywołano po zmianie stanu Menedżera gier.
- Parameters
-
gameManagerChannel | The affected GCKGameManagerChannel. |
currentState | The current state. |
previousState | The previous state. |
- (void) gameManagerChannel: |
|
(GCKGameManagerChannel *) |
gameManagerChannel |
didReceiveGameMessage: |
|
(id) |
gameMessage |
forPlayerID: |
|
(NSString *) |
playerID |
|
|
| |
Wywoływane, gdy odbiornik wysyła wiadomość z gry dla określonego gracza.
- Parameters
-
gameManagerChannel | The affected GCKGameManagerChannel. |
gameMessage | The game message sent by the receiver. |
playerID | The player ID associated with the game message. |
Wywoływana, gdy prośba o dostęp do gry lub żądanie gry została zrealizowana.
- Parameters
-
gameManagerChannel | The affected GCKGameManagerChannel. |
requestID | The request ID that failed. This is the ID returned when the request was made. |
result | The GCKGameManagerResult returned as part of this request response. |
Wywołano, gdy żądanie gracza lub żądanie gry zakończyło się błędem.
- Parameters
-
gameManagerChannel | The affected GCKGameManagerChannel. |
requestID | The request ID that failed. This is the ID returned when the request was made. |
error | The error describing the failure. |
Wywoływana, gdy menedżer gier u odbiorcy nawiąże połączenie i będziemy gotowi do interakcji z nią.
- Parameters
-
Wywoływane, gdy Menedżer gier po stronie odbiorcy napotka błąd.
- Parameters
-
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: 2022-12-06 UTC.
[null,null,["Ostatnia aktualizacja: 2022-12-06 UTC."],[],["The `GCKGameManagerChannelDelegate` protocol, now deprecated, handled game control operations. Key actions include monitoring game state changes, receiving game messages for specific players, and managing player or game request outcomes. The delegate is informed when requests succeed, providing the result, or fail, with an error. Additionally, it handles connection status, indicating when a connection is established or when a connection fails. These methods are called upon events that relate to Game Manager interactions.\n"],null,[]]