GKMatchDelegate_Extensions GKMatchDelegate_Extensions Class

Definition

Extension methods to the IGKMatchDelegate interface to support all the methods from the GKMatchDelegate protocol.

public static class GKMatchDelegate_Extensions
type GKMatchDelegate_Extensions = class
Inheritance
GKMatchDelegate_ExtensionsGKMatchDelegate_Extensions

Remarks

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

Methods

DataReceived(IGKMatchDelegate, GKMatch, NSData, String) DataReceived(IGKMatchDelegate, GKMatch, NSData, String)

Developers should not use this deprecated method. Developers should use 'DataReceivedFromPlayer (GKMatch,NSData,GKPlayer)' instead.

DataReceivedForRecipient(IGKMatchDelegate, GKMatch, NSData, GKPlayer, GKPlayer) DataReceivedForRecipient(IGKMatchDelegate, GKMatch, NSData, GKPlayer, GKPlayer)

Method that is called when the recipient recieves data from another player.

DataReceivedFromPlayer(IGKMatchDelegate, GKMatch, NSData, GKPlayer) DataReceivedFromPlayer(IGKMatchDelegate, GKMatch, NSData, GKPlayer)

Method that is called when data is received from a player.

Failed(IGKMatchDelegate, GKMatch, NSError) Failed(IGKMatchDelegate, GKMatch, NSError)

Method that is called when a match cannot connect to any of the players.

ShouldReinviteDisconnectedPlayer(IGKMatchDelegate, GKMatch, GKPlayer) ShouldReinviteDisconnectedPlayer(IGKMatchDelegate, GKMatch, GKPlayer)

Method that is called when a player is disconnected from a two-player match.

ShouldReinvitePlayer(IGKMatchDelegate, GKMatch, String) ShouldReinvitePlayer(IGKMatchDelegate, GKMatch, String)
StateChanged(IGKMatchDelegate, GKMatch, String, GKPlayerConnectionState) StateChanged(IGKMatchDelegate, GKMatch, String, GKPlayerConnectionState)
StateChangedForPlayer(IGKMatchDelegate, GKMatch, GKPlayer, GKPlayerConnectionState) StateChangedForPlayer(IGKMatchDelegate, GKMatch, GKPlayer, GKPlayerConnectionState)

Method that is called when a player's connection state changes.

Applies to