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
Activates the player’s turn. (required)

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.
Available in OS X v10.10 and later.

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
This event is called whenever you programmatically invite specific players to join a match.

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.
Available in OS X v10.10 and later.

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
Called when GKMatchMBS.rematch completes.

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
Called when a non-local player has completed a challenge issued by the local player.

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
Called by GKTurnBasedMatchMBS.remove on completion.

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
Called by GKAchievementMBS.reportAchievement after the operation completes.

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
Called when GKAchievementMBS.reportAchievements completes.

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
Called by GKScoreMBS.reportScore after the score is reported.

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
Reporting scores completed.

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
Called by GKAchievementMBS.resetAchievements when the reset action is completed.

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.


The biggest plugin in space...