Platforms to show: All Mac Windows Linux Cross-Platform
GKMatchRequestMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
A GKMatchRequest object is passed to the GKMatchmaker object to programmatically search for other players, or to a GKMatchmakerViewController (GKMatchmakerPanel on OS X) object when your game wants to present the default user interface to the player.
- 7 properties
- property Handle as Integer
- property defaultNumberOfPlayers as Integer
- property inviteMessage as string
- property maxPlayers as Integer
- property minPlayers as Integer
- property playerAttributes as UInt32
- property playerGroup as Integer
- 7 methods
- method Constructor
- method playersToInvite as string()
- method recipients as GKPlayerMBS()
- method SetInviteeResponseHandler(tag as Variant = nil)
- method setPlayersToInvite(playerIDs() as string)
- method SetRecipientResponseHandler(tag as Variant = nil)
- method setRecipients(players() as GKPlayerMBS)
- shared method Available as boolean
This class has no sub classes.
Some methods using this class:
- GKMatchmakerMBS.addPlayersToMatch(match as GKMatchMBS, matchRequest as GKMatchRequestMBS, tag as Variant = nil)
- GKMatchmakerMBS.findMatchForRequest(request as GKMatchRequestMBS, tag as Variant = nil)
- GKMatchmakerMBS.findPlayersForHostedMatchRequest(request as GKMatchRequestMBS, tag as Variant = nil)
- GKMatchmakerViewControllerMBS.Constructor(request as GKMatchRequestMBS)
- GKMatchmakerViewControllerMBS.matchRequest as GKMatchRequestMBS
- GKTurnBasedMatchmakerViewControllerMBS.Constructor(request as GKMatchRequestMBS)
- GKTurnBasedMatchMBS.findMatchForRequest(request as GKMatchRequestMBS, tag as Variant = nil)
Some events using this class:
- GameKitMBS.addPlayersToMatchCompleted(MatchMaker as GKMatchmakerMBS, match as GKMatchMBS, matchRequest as GKMatchRequestMBS, error as NSErrorMBS, tag as Variant)
- GameKitMBS.findMatchForRequestCompleted(MatchMaker as GKMatchmakerMBS, request as GKMatchRequestMBS, match as GKMatchMBS, TurnBasedMatch as GKTurnBasedMatchMBS, error as NSErrorMBS, tag as Variant)
- GameKitMBS.findPlayersForHostedMatchRequestCompleted(MatchMaker as GKMatchmakerMBS, request as GKMatchRequestMBS, playerIDs() as string, error as NSErrorMBS, tag as Variant)
- GameKitMBS.inviteeResponseHandler(MatchRequest as GKMatchRequestMBS, PlayerID as string, response as Integer, tag as Variant)
- GameKitMBS.recipientResponseHandler(MatchRequest as GKMatchRequestMBS, Player as GKPlayerMBS, response as Integer, tag as Variant)
Xojo Developer Magazine
- 12.6, pages 28 to 29: Writing OS X Apps for Game Center, Part 3: Turn-Based Games by Tom Baumgartner
- 12.5, pages 32 to 33: Writing OS X Apps for Game Center, Part 2: Requesting a Match by Tom Baumgartner
- 12.5, page 29: Writing OS X Apps for Game Center, Part 2: Requesting a Match by Tom Baumgartner
The items on this page are in the following plugins: MBS MacFrameworks Plugin.