پروتکل <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
-
زمانی فراخوانی می شود که مدیر بازی گیرنده در حین اتصال با خطا مواجه شود.
- Parameters
-
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2022-12-05 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2022-12-05 بهوقت ساعت هماهنگ جهانی."],[],["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,[]]