match(_:shouldReinviteDisconnectedPlayer:)
Determines whether the local player should reinvite another player who disconnected from a two-player match.
Declaration
optional func match(_ match: GKMatch, shouldReinviteDisconnectedPlayer player: GKPlayer) -> BoolParameters
- match:
The match that the player disconnected from.
- player:
The player who disconnected from the match.
Mentioned in
Return Value
true if GameKit should reinvite the player when they disconnect; false if GameKit should end the match when the player disconnects.
Discussion
If the player successfully reconnects to the match, GameKit sends match(_:player:didChange:) to the match’s delegate.