Instance Property

participants

Information about the players participating in the match.

Declaration

var participants: [GKTurnBasedParticipant] { get }

Discussion

The elements of this array are GKTurnBasedParticipant objects representing each participant in the match. Your game uses these objects to retrieve more information about the participants in the match. Your game also uses one of the objects in this array as a parameter whenever it calls a method that sets a different participant to act in the match.

The size of the array and the order in which the participants appear in the array are set when the match is first created, and never changes. When a match is first created, some participants may not hold actual players yet. Game Center searches for a player to fill that spot in the match only after your game sets that participant as the current player.

See Also

Retrieving Information About the Match

var currentParticipant: GKTurnBasedParticipant?

The participant whose turn it is to act next.

var matchData: Data?

Game-specific data that reflects the details of the match.

var matchDataMaximumSize: Int

Returns the limit the Game Center servers place on the size of the match data.

var message: String?

A message displayed to all players in the match.

var creationDate: Date

The date that the match was created.

var matchID: String

A string that uniquely identifies the match.

var status: GKTurnBasedMatch.Status

The current state of the match.

enum GKTurnBasedMatch.Status

The different states that a match can enter.