Class

GKInvite

A matchmaking invitation sent by another player to the local player.

Declaration

class GKInvite : NSObject

Overview

Your game never directly creates GKInvite objects. Instead, these objects are created by GameKit and delivered to your game’s matchmaking event handler. The properties of the invitation object describe the match the local player is being invited to join.

Topics

Reading Invitation Properties

var isHosted: Bool

A Boolean value that states whether the game is hosted on your servers.

var playerAttributes: UInt32

The player attributes for the match.

var playerGroup: Int

The player group for the match.

var sender: GKPlayer

The identifier for the player who sent the invitation.

var inviter: String

The identifier for the player who sent the invitation.

Deprecated

Relationships

Inherits From

Conforms To

See Also

Player Invitations

class GKMatchmaker

An object that programmatically creates matches with other players and receives match invitations sent by other players.

class GKMatchmakerViewController

A user interface for inviting friends to a match or for allowing Game Center to fill the remaining players needed for a match.

class GKTurnBasedMatchmakerViewController

A user interface that allows players to manage the turn-based matches that they are participating in.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software