Platforms to show: All Mac Windows Linux Cross-Platform
GKMatchmakerMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
- property Handle as Integer
- 13 methods
- method addPlayersToMatch(match as GKMatchMBS, matchRequest as GKMatchRequestMBS, tag as Variant = nil)
- method cancel
- method cancelInviteToPlayer(playerID as string)
- method Constructor
- method Destructor
- method findMatchForRequest(request as GKMatchRequestMBS, tag as Variant = nil)
- method findPlayersForHostedMatchRequest(request as GKMatchRequestMBS, tag as Variant = nil)
- method finishMatchmakingForMatch(match as GKMatchMBS)
- method matchForInvite(invite as GKInviteMBS, tag as Variant = nil)
- method queryActivity(tag as Variant = nil)
- method queryPlayerGroupActivity(playerGroup as Integer, tag as Variant = nil)
- method startBrowsingForNearbyPlayers(tag as Variant = nil)
- method stopBrowsingForNearbyPlayers
- 3 shared methods
- shared method Available as boolean
- shared method maxPlayersAllowedForMatchOfType(type as Integer) as Integer
- shared method sharedMatchmaker as GKMatchmakerMBS
- 3 constants
Match Types
Constant | Value | Description |
---|---|---|
GKMatchTypeHosted | 1 |
Hosted Match Available on Mac OS X 10.8.2 and newer. |
GKMatchTypePeerToPeer | 0 |
Peer to Peer Match. Available on Mac OS X 10.8.2 and newer. |
GKMatchTypeTurnBased | 2 |
Turn based match. Available on Mac OS X 10.8.2 and newer. |
This class has no sub classes.
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.Invited(MatchMaker as GKMatchmakerMBS, acceptedInvite as GKInviteMBS, playersToInvite() as string)
- GameKitMBS.matchForInviteCompleted(Matchmaker as GKMatchmakerMBS, invite as GKInviteMBS, match as GKMatchMBS, error as NSErrorMBS, tag as Variant)
- GameKitMBS.queryActivityCompleted(MatchMaker as GKMatchmakerMBS, activity as Integer, error as NSErrorMBS, tag as Variant)
- GameKitMBS.queryPlayerGroupActivityCompleted(MatchMaker as GKMatchmakerMBS, playerGroup as Integer, activity as Integer, error as NSErrorMBS, tag as Variant)
- GameKitMBS.startBrowsingForNearbyPlayersCompleted(Matchmaker as GKMatchmakerMBS, playerID as string, reachable as boolean, tag as Variant)
Xojo Developer Magazine
- 12.5, pages 31 to 32: 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.
GKLocalPlayerMBS - GKMatchmakerViewControllerMBS