Instance Method

session:didReceiveData:fromPlayer:

Tells the listener the player received data from another player.

Declaration

- (void)session:(GKGameSession *)session didReceiveData:(NSData *)data fromPlayer:(GKCloudPlayer *)player;

Parameters

session

The game session the sending player is associated with.

data

The data sent by the player.

player

The player sending data to all other connected players in the game session.

Discussion

This event fires after the sendData:withTransportType:completionHandler: method has been called. All connected players except the calling player are notified.

See Also

Transferring Data

- session:didReceiveMessage:withData:fromPlayer:

Tells the listener a player has received a message from another player.

Deprecated
- session:player:didSaveData:

Tells the listener data was saved by a player.

Deprecated