Instance Property

recipients

A list of player identifiers for players to invite to the match.

Declaration

var recipients: [GKPlayer]? { get set }

Discussion

The property holds an array of GKPlayer objects, each of which contains an identifier for a player on Game Center. If the value of the property is non-nil, when you use the request to create a match, Game Center invites those players to the match. No automatching is done and the GKMatchRequestmaxPlayers and minPlayers properties are ignored. If nil (the default), no players are invited. The exact behavior for matchmaking depends on the kind of match being created and the class used to create the match.

See Also

Inviting an Initial Group of Players

var recipientResponseHandler: ((GKPlayer, GKInviteRecipientResponse) -> Void)?

A block to be called when a response from an invited player is returned to your game.

enum GKInviteRecipientResponse

Possible responses from an invitation to a remote player.