Протокол <GCKGameManagerChannelDelegate>
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Протокол делегата GCKGameManagerChannel .
- Deprecated:
- Game Manager API больше не поддерживается и будет удален в будущем выпуске.
Наследует <GCKCastChannelNSObject>.
Вызывается при изменении состояния Game Manager.
- Parameters
-
gameManagerChannel | The affected GCKGameManagerChannel . |
currentState | The current state. |
previousState | The previous state. |
- (void) gameManagerChannel: |
|
( GCKGameManagerChannel *) |
gameManagerChannel |
didReceiveGameMessage: |
|
(id) |
gameMessage |
forPlayerID: |
|
(NSString *) |
playerID |
|
|
| |
Вызывается, когда получатель отправляет игровое сообщение для определенного игрока.
- Parameters
-
gameManagerChannel | The affected GCKGameManagerChannel . |
gameMessage | The game message sent by the receiver. |
playerID | The player ID associated with the game message. |
Вызывается, когда запрос игрока или запрос игры был успешным.
- 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. |
- (void) gameManagerChannel: |
|
( GCKGameManagerChannel *) |
gameManagerChannel |
requestDidFailWithID: |
|
(NSInteger) |
requestID |
error: |
|
( GCKError *) |
error |
|
|
| |
Вызывается при сбое запроса игрока или игрового запроса.
- 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. |
Вызывается, когда Game Manager получателя успешно подключается и мы готовы взаимодействовать с ним.
- Parameters
-
Вызывается, когда Game Manager получателя обнаруживает ошибку во время соединения.
- Parameters
-
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2022-12-05 UTC.
[null,null,["Последнее обновление: 2022-12-05 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,[]]