GKTurnBasedEventListener_Extensions Class

Definition

Extension methods to the IGKTurnBasedEventListener interface to support all the methods from the GKTurnBasedEventListener protocol.

public static class GKTurnBasedEventListener_Extensions
type GKTurnBasedEventListener_Extensions = class
Inheritance
GKTurnBasedEventListener_Extensions

Remarks

The extension methods for IGKTurnBasedEventListener allow developers to treat instances of the interface as having all the optional methods of the original GKTurnBasedEventListener protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

DidRequestMatchWithOtherPlayers(IGKTurnBasedEventListener, GKPlayer, GKPlayer[])

Method that is called when player requests a match with playersToInvite.

DidRequestMatchWithPlayers(IGKTurnBasedEventListener, GKPlayer, String[])

Developers should not use this deprecated method. Developers should use 'DidRequestMatchWithOtherPlayers' instead.

MatchEnded(IGKTurnBasedEventListener, GKPlayer, GKTurnBasedMatch)

Method that is called after the match is ended.

ReceivedExchangeCancellation(IGKTurnBasedEventListener, GKPlayer, GKTurnBasedExchange, GKTurnBasedMatch)

Method that is called after player cancels the exchange.

ReceivedExchangeReplies(IGKTurnBasedEventListener, GKPlayer, GKTurnBasedExchangeReply[], GKTurnBasedExchange, GKTurnBasedMatch)

Method that is called after the exchange with player completes.

ReceivedExchangeRequest(IGKTurnBasedEventListener, GKPlayer, GKTurnBasedExchange, GKTurnBasedMatch)

Method that is called when player receives a request for an exchange.

ReceivedTurnEvent(IGKTurnBasedEventListener, GKPlayer, GKTurnBasedMatch, Boolean)

Method that is called to activate a turn for player.

WantsToQuitMatch(IGKTurnBasedEventListener, GKPlayer, GKTurnBasedMatch)

Method that is called after player indicates that they desire to quit the match.

Applies to