Instance Method

player(_:wantsToPlay:)

Called when a player wants to start a game with the intention of completing a challenge.

Declaration

optional func player(_ player: GKPlayer, wantsToPlay challenge: GKChallenge)

Parameters

player

The player who selected the challenge.

challenge

The challenge to be played by the player.

See Also

Responding to a Challenge

func player(GKPlayer, didReceive: GKChallenge)

Called when a player receives a challenge and doesn’t want to address it immediately.