Instance Method

player(_:matchEnded:)

Called when the match has ended.

Declaration

optional func player(_ player: GKPlayer, matchEnded match: GKTurnBasedMatch)

Parameters

player

The GKPlayer object containing the current player’s information.

match

The GKTurnBasedMatch object containing the current game data.

See Also

Handling Match-Related Events

func player(GKPlayer, didRequestMatchWithOtherPlayers: [GKPlayer])

Initiates a match from Game Center with the requested players.

func player(GKPlayer, wantsToQuitMatch: GKTurnBasedMatch)

Indicates that the current player wants to quit the current match.

func player(GKPlayer, didRequestMatchWithPlayers: [String])

Initiates a match from Game Center with the requested players.

Deprecated