Instance Method


Retrieves a list of players with the specified connection state.


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



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.

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