Edytuj

Udostępnij za pośrednictwem


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_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

ConnectionFailed(IGKMatchDelegate, GKMatch, String, NSError)
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)

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

DataReceivedFromPlayer(IGKMatchDelegate, GKMatch, NSData, GKPlayer)

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

Failed(IGKMatchDelegate, GKMatch, NSError)

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

ShouldReinviteDisconnectedPlayer(IGKMatchDelegate, GKMatch, GKPlayer)

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

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

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

Applies to