Instance Method

player(_:didReceive:)

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

Declaration

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

Parameters

player

The player that receives the challenge.

challenge

The challenge sent to the player.

See Also

Responding to a Challenge

func player(GKPlayer, wantsToPlay: GKChallenge)

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