A Boolean value that indicates whether the match is hosted or peer-to-peer.
- iOS 4.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
The value of the
hosted property determines which methods of the delegate are called when the match is complete. If
true, this is a hosted match, and the delegate’s
matchmaker method is to provide the list of players to your game. If
false, this is a peer-to-peer match, and
matchmaker is called with a
GKMatch object. The default value is
Hosted matches require you to provide a server that hosts the participants in the match. For more information on implementing hosted matches, see Real-Time Matches.