Instance Method

player(_:didAccept:)

Called when another player accepts a match invite from the local player.

Declaration

optional func player(_ player: GKPlayer, didAccept invite: GKInvite)

Parameters

player

The GKPlayer object that identifies the player associated with the invitation.

invite

The invitation accepted by the player.

See Also

Starting a New Match

func player(GKPlayer, didRequestMatchWithRecipients: [GKPlayer])

Called when the local player starts a match with another player from Game Center.

func player(GKPlayer, didRequestMatchWithPlayers: [String])

Called when the local player starts a match with another player from Game Center.

Deprecated