Instance Property

matchID

A string that uniquely identifies the match.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(readonly, retain, nonatomic) NSString *matchID;
macOS
@property(readonly, retain, atomic) NSString *matchID;

Discussion

This string is not intended to be displayed to players. Your game should use this string whenever it needs to identify a specific match. For example, if you want your game to store additional information on a device or in iCloud, it might store it in a database using the match ID as a key.

See Also

Retrieving Information About the Match

participants

Information about the players participating in the match.

currentParticipant

The participant whose turn it is to act next.

matchData

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

matchDataMaximumSize

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

message

A message displayed to all players in the match.

creationDate

The date that the match was created.

status

The current state of the match.

GKTurnBasedMatchStatus

The different states that a match can enter.