Instance Property

expectedPlayerCount

The remaining number of players who have not yet connected to the match.

Declaration

var expectedPlayerCount: Int { get }

Discussion

The value of this property is decremented whenever a player connects to the match. When its value reaches 0, all expected players are connected, and your game can begin the match.

See Also

Working with Other Players

var players: [GKPlayer]

An array of GKPlayer objects that represent the players in the match.