Instance Property

isHosted

A Boolean value that states whether the game is hosted on your servers.

Declaration

var isHosted: Bool { get }

Discussion

If the value of the isHosted property is true, this is a match hosted on your own server. If the value is false, this is a peer-to-peer match using Game Center. The default is false.

See Also

Reading Invitation Properties

var playerAttributes: UInt32

The player attributes for the match.

var playerGroup: Int

The player group for the match.

var sender: GKPlayer

The identifier for the player who sent the invitation.

var inviter: String

The identifier for the player who sent the invitation.

Deprecated

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