match(_:player:didChange:)
Handles when a player connects or disconnects from a match.
Declaration
optional func match(_ match: GKMatch, player playerID: String, didChange state: GKPlayerConnectionState)Parameters
- match:
The match that the player is connected to.
- playerID:
The identifier for the player whose state changed.
- state:
The state the player moved to.
Discussion
Implement this method to be notified when players connect to or disconnect from the match.