Instance Method

players(with:)

Retrieves a list of players with the specified connection state.

Declaration

func players(with state: GKConnectionState) -> [GKCloudPlayer]

Parameters

state

A GKConnectionState used to find the requested players.

Return Value

An array of players with the indicated connection state.

See Also

Connecting Players for Real-Time Communication

func send(Data, with: GKTransportType, completionHandler: (Error?) -> Void)

Sends the indicated data to all connected players.

Deprecated
enum GKTransportType

The mechanism used to send messages to other players in a game session.