Instance Method

playersWithConnectionState:

Retrieves a list of players with the specified connection state.

Declaration

- (NSArray<GKCloudPlayer *> *)playersWithConnectionState:(GKConnectionState)state;

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

- setConnectionState:completionHandler:

Sets the connection state for the player.

Deprecated
- sendData:withTransportType:completionHandler:

Sends the indicated data to all connected players.

Deprecated
GKTransportType

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