Enumeration

GKInviteRecipientResponse

Possible responses from an invitation to a remote player.

Declaration

enum GKInviteRecipientResponse : Int

Topics

Constants

case accepted

The player accepted the invitation.

case declined

The player rejected the invitation.

case failed

The invitation was unable to be delivered.

case incompatible

The invitee is not running a compatible version of your game.

case unableToConnect

The invitee could not be contacted.

case noAnswer

The invitation timed out without an answer.

Legacy Constants

The following constants are no longer recommended and have been replaced by the above constants.

static var inviteeResponseFailed: GKInviteRecipientResponse

The invitation was unable to be delivered.

static var inviteeResponseIncompatible: GKInviteRecipientResponse

The invitee is not running a compatible version of your game.

static var inviteeResponseNoAnswer: GKInviteRecipientResponse

The invitation timed out without an answer.

See Also

Inviting an Initial Group of Players

var recipients: [GKPlayer]?

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

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

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