Contents

properties

The local player’s properties that matchmaking rules used to find the players with some additions.

Declaration

var properties: [String : Any]? { get }

Discussion

This property is similar to the GKMatchRequest.properties property but with some additions that Game Center may add. For example, if you add team rules to your rule set, use the gc and team keys to get the name of the player’s team.

// Get the local player's team assignment.
properties = match.properties
team = properties["gc"]["team"]

For more information, see Matchmaking rules.

See Also

Getting matchmaking properties