نظرة عامة
بروتوكول تفويض GCKGameManagerChannel
- Deprecated:
- لم تعد واجهة برمجة تطبيقات مدير الألعاب متاحة وستتم إزالتها في إصدار مستقبلي.
يكتسب <GCKCastChannelNSObject>.
ملخص طريقة المثيل | |
(void) | - gameManagerChannel:stateDidChangeTo:from: |
ويتم الاتصال عند تغيير حالة مدير اللعبة. المزيد... | |
(void) | - gameManagerChannel:didReceiveGameMessage:forPlayerID: |
يتم الاتصال عندما يرسل المتلقي رسالة لعبة للاعب محدد. المزيد... | |
(void) | - gameManagerChannel:requestDidSucceedWithID:result: |
يتم الاتصال عند نجاح طلب أحد اللاعبين أو طلب اللعبة. المزيد... | |
(void) | - gameManagerChannel:requestDidFailWithID:error: |
يتم الاتصال عند حدوث إخفاق في طلب أحد اللاعبين أو طلب اللعبة. المزيد... | |
(void) | - gameManagerChannelDidConnect: |
يتم الاتصال عندما يتصل مدير ألعاب المتلقي بنجاح وتكون جاهزًا للتفاعل معه. المزيد... | |
(void) | - gameManagerChannel:didFailToConnectWithError: |
يتم الاتصال عند مواجهة مدير الألعاب للمستلم رسالة خطأ أثناء الاتصال. المزيد... | |
تفاصيل الطريقة
- (void) gameManagerChannel: | (GCKGameManagerChannel *) | gameManagerChannel | |
stateDidChangeTo: | (GCKGameManagerState *) | currentState | |
from: | (GCKGameManagerState *) | previousState | |
ويتم الاتصال عند تغيير حالة مدير اللعبة.
- 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.
- (void) gameManagerChannel: | (GCKGameManagerChannel *) | gameManagerChannel | |
requestDidSucceedWithID: | (NSInteger) | requestID | |
result: | (GCKGameManagerResult *) | result | |
يتم الاتصال عند نجاح طلب أحد اللاعبين أو طلب اللعبة.
- 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.
|
required |
يتم الاتصال عندما يتصل مدير ألعاب المتلقي بنجاح وتكون جاهزًا للتفاعل معه.
- Parameters
-
gameManagerChannel The affected GCKGameManagerChannel.
|
required |
يتم الاتصال عند مواجهة مدير الألعاب للمستلم رسالة خطأ أثناء الاتصال.
- Parameters
-
gameManagerChannel The affected GCKGameManagerChannel. error The error describing the failure.