Instance Property

playerIDs

An array of NSString objects containing the player identifiers for remote players in the match.

Declaration

var playerIDs: [String] { get }

Discussion

The playerIDs property initially includes the player identifiers for any remote players already connected to the match; the array may initially be empty. As each new player connects to the match, that player’s identifier is added to the array. The player identifier for the local player is not included in this array.

See Also

Deprecated Methods and Properties

func chooseBestHostPlayer(completionHandler: (String?) -> Void)

Determines the best player in the game to act as the server for a client-server match.

Deprecated
func send(Data, toPlayers: [String], with: GKMatch.SendDataMode)

Transmits data to a list of connected players.

Deprecated