Contents

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.

Mentioned in

Return Value

The maximum number of allowed players.

Discussion

For peer-to-peer, hosted, and turn-based matches, the maximum number of players is 16.

See Also

Restricting the number of players