Instance Method

match:player:didChangeState:

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

Declaration

- (void)match:(GKMatch *)match player:(NSString *)playerID didChangeState:(GKPlayerConnectionState)state;

Parameters

match

The match that the player is connected to.

player

The identifier for the player whose state changed.

state

The state the player moved to.

Discussion

Your game implements this method to be notified when players connect to or disconnect from the match.

See Also

Deprecated Methods and Properties

- 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