Giao thức <GCKGameManagerChannelDelegate>
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Giao thức uỷ quyền GCKGameManagerChannel.
- Deprecated:
- Game Manager API không còn được hỗ trợ nữa và sẽ bị xoá trong một bản phát hành sau này.
Kế thừa <GCKCastChannelNSObject>.
Được gọi khi trạng thái Trình quản lý trò chơi đã thay đổi.
- Parameters
-
gameManagerChannel | The affected GCKGameManagerChannel. |
currentState | The current state. |
previousState | The previous state. |
- (void) gameManagerChannel: |
|
(GCKGameManagerChannel *) |
gameManagerChannel |
didReceiveGameMessage: |
|
(id) |
gameMessage |
forPlayerID: |
|
(NSString *) |
playerID |
|
|
| |
Được gọi khi người nhận gửi tin nhắn trò chơi cho một người chơi cụ thể.
- Parameters
-
gameManagerChannel | The affected GCKGameManagerChannel. |
gameMessage | The game message sent by the receiver. |
playerID | The player ID associated with the game message. |
Được gọi khi yêu cầu của người chơi hoặc yêu cầu trò chơi thành công.
- 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. |
Được gọi khi yêu cầu của người chơi hoặc yêu cầu trò chơi không thành công kèm theo lỗi.
- 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. |
Được gọi khi Trình quản lý trò chơi của người nhận kết nối thành công và chúng tôi sẵn sàng tương tác với trò chơi đó.
- Parameters
-
Được gọi khi Trình quản lý trò chơi của người nhận gặp lỗi trong quá trình kết nối.
- Parameters
-
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2022-12-06 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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,[]]