matchmakerViewController(_:getMatchPropertiesForRecipient:withCompletionHandler:)
Returns the properties for another player that the local player invites using the view controller interface.
Declaration
optional func matchmakerViewController(_ viewController: GKMatchmakerViewController, getMatchPropertiesForRecipient recipient: GKPlayer, withCompletionHandler completionHandler: @escaping @Sendable ([String : Any]) -> Void)optional func matchmakerViewController(_ viewController: GKMatchmakerViewController, getMatchPropertiesForRecipient recipient: GKPlayer) async -> [String : Any]Parameters
- viewController:
The view controller that finds players for the match.
- recipient:
A player to invite to the match.
- completionHandler:
The block that this method calls when it completes the request.
The block receives the following parameter:
recipientPropertiesThe properties for
recipientthat the local player invites to the match.
Mentioned in
Discussion
Implement this method if you can provide properties for the recipients of this match request to better fine tune the Game Center matchmaking using rules. For more information, see Matchmaking rules.