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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software