Type Method

maxPlayersAllowedForMatch(of:)

Returns the maximum number of players allowed in the match request for a given match type.

Declaration

class func maxPlayersAllowedForMatch(of matchType: GKMatchType) -> Int

Parameters

matchType

The kind of match. See GKMatchType.

Return Value

The maximum number of allowed players for that type of match.

See Also

Determining the Number of Players Allowed in the Game

enum GKMatchType

The kind of match being created.

var maxPlayers: Int

The maximum number of players that may join the match.

var minPlayers: Int

The minimum number of players that may join the match.

var defaultNumberOfPlayers: Int

The default number of players for the match.