Protocol

GKMatchDelegate

The delegate is called when status updates and network data is received from players.

Declaration

@protocol GKMatchDelegate

Overview

The GKMatchDelegate protocol is implemented by delegates of the GKMatch class.

Topics

Receiving Data from Other Players

match:didReceiveData:forRecipient:fromRemotePlayer:

Called when data is received by a player from another player.

match:didReceiveData:fromRemotePlayer:

Called when data is received from a player.

Receiving State Notifications About Other Players

match:player:didChangeConnectionState:

Called when a player connects to or disconnects from the match.

GKPlayerConnectionState

The state of another player in the match.

Handling Errors

match:didFailWithError:

Called when the match cannot connect to any other players.

Reinviting a Player

match:shouldReinviteDisconnectedPlayer:

Called when a player in a two-player match was disconnected.

Deprecated Methods and Properties

match:player:didChangeState:

Called when a player connects to or disconnects from the match.

Deprecated
match:didReceiveData:fromPlayer:

Called when data is received from a player.

Deprecated
match:shouldReinvitePlayer:

Called when a player in a two-player match was disconnected.

Deprecated

Relationships

Inherits From

See Also

Getting and Setting the Delegate

delegate

The delegate for the match.