Platforms to show: All Mac Windows Linux Cross-Platform
Back to GameKitMBS class.
GameKitMBS.receivedTurnEventForMatch(player as GKPlayerMBS, match as GKTurnBasedMatchMBS, didBecomeActive as boolean)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | GameKit | MBS MacFrameworks Plugin | 15.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This method is called when the it becomes the player’s turn. It is also called when any of the following events happen:
- The current turn has a time-out associated with it and the turn is about to expire.
- Player accepts an invite from another player.
- Turn was passed to another player. In this case, didBecomeActive is false.
- Match data is saved by another player.
- Player receives a reminder.
GameKitMBS.recipientResponseHandler(MatchRequest as GKMatchRequestMBS, Player as GKPlayerMBS, response as Integer, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | GameKit | MBS MacFrameworks Plugin | 15.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
It is called once for each player invited to the match. Typically, your game uses the responses to update the custom user interface. For example, you want the player to be able to perform any of the following tasks:
- Start the match.
- Invite an additional set of specific players.
- Use matchmaking to fill the remaining match slots.
GameKitMBS.rematchCompleted(TurnMatch as GKTurnBasedMatchMBS, match as GKMatchMBS, error as NSErrorMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | GameKit | MBS MacFrameworks Plugin | 13.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
match: The new match. If an error occurred, this parameter's value is nil.
error: If an error occurred, this parameter holds an error object that describes the problem. If the match was successfully recreated, this parameter's value is nil.
Available on Mac OS X 10.8.2 and newer.
GameKitMBS.remotePlayerDidCompleteChallenge(challenge as GKChallengeMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | GameKit | MBS MacFrameworks Plugin | 13.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Triggered by a push notification from the server. Received when a challenge notification banner is clicked, or while the game is running.
Available on Mac OS X 10.8.2 and newer.
GameKitMBS.removeCompleted(match as GKTurnBasedMatchMBS, error as NSErrorMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If an error occurred, this error object describes the error. If the operation was completed successfully, the value is nil.
Tag is the parameter you passed to remove method.
GameKitMBS.reportAchievementCompleted(score as GKAchievementMBS, error as NSErrorMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
error: If the operation was successful, this value is nil; otherwise, this parameter holds an object that describes the problem that occurred.
GameKitMBS.reportAchievementsCompleted(achievements() as GKAchievementMBS, error as NSErrorMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | GameKit | MBS MacFrameworks Plugin | 13.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Available on Mac OS X 10.8.2 and newer.
GameKitMBS.reportScoreCompleted(score as GKScoreMBS, error as NSErrorMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
error: If an error occurred, this parameter holds an error object that describes the problem. If the score was successfully reported, this parameter's value is nil.
GameKitMBS.reportScoresCompleted(Scores() as GKScoreMBS, error as NSErrorMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | GameKit | MBS MacFrameworks Plugin | 13.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
scores: An array of score objects to report to Game Center.
error: If an error occurred, this parameter holds an error object that describes the problem. If the score was successfully reported, this parameter's value is nil.
Available on Mac OS X 10.8.2 and newer.
GameKitMBS.resetAchievementsCompleted(error as NSErrorMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
error: If the operation was successful, this value is nil; otherwise, this parameter holds an object that describes the problem that occurred.
The items on this page are in the following plugins: MBS MacFrameworks Plugin.