Instance Method

match:didReceiveData:fromPlayer:

Called when data is received from a player.

Declaration

- (void)match:(GKMatch *)match didReceiveData:(NSData *)data fromPlayer:(NSString *)playerID;

Parameters

match

The match that received the data.

data

The bytes sent by the player.

player

The string identifier for the player that sent the data.

Discussion

Your game defines its own format for data packets it transmits and receives over the network.

See Also

Deprecated Methods and Properties

- match:player:didChangeState:

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

Deprecated
- match:shouldReinvitePlayer:

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

Deprecated