Sets the connection state for the player.
- iOS 10.0–12.0Deprecated
- macOS 10.12–10.14Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 10.0–12.0Deprecated
GKConnectionto be assigned to the player.
A block that is called after the connect state has been set.
If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is nil. See GameKit Constants for a list of error codes specific to GameKit.
This method will fail when the game session's player limit has already been reached or there are network problems. The game session's
last properties are updated on completion.