session(_:didReceive:from:)
Tells the listener the player received data from another player.
Declaration
optional func session(_ session: GKGameSession, didReceive data: Data, from player: GKCloudPlayer)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 send(_:with:completionHandler:) method has been called. All connected players except the calling player are notified.