Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

GKGameCenterViewControllerMBS class

Super class: NSViewControllerMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class GameKit MBS MacFrameworks Plugin 13.0 Yes No No Yes, macOS only No
Function: The GKGameCenterViewControllerMBS class aggregates many common Game Center features into a single user interface.
Notes:
It replaces GKAchievementViewControllerMBS and GKLeaderboardViewControllerMBS as the preferred way to show Game Center content in your game.

Important: Your application must authenticate a local player before you can use any Game Center classes. If there is no authenticated player, your application receives a GKErrorNotAuthenticated error. For more information on authentication, see Game Center Programming Guide.

To display the Game Center screen, initialize a new GKGameCenterViewController object and set its delegate. Optionally, you can choose to configure the view controller further to specify which content is initially displayed. Then present the view controller. Your delegate is called when the user dismisses the screen.

Your game should pause other activities before presenting the Game Center user interface.

Available on Mac OS X 10.8.2 and newer.
Subclass of the NSViewControllerMBS class.

Feedback, Comments & Corrections

State Values

Constant Value Description
StateAchievements 1 Indicates that the view controller presents achievements content.
Available on Mac OS X 10.8.2 and newer.
StateChallenges 2 Indicates that the view controller presents challenges content.
Available on Mac OS X 10.8.2 and newer.
StateDefault -1 Indicates that the view controller should present the default screen.
Available on Mac OS X 10.8.2 and newer.
StateLeaderboards 0 Indicates that the view controller presents leaderboard content. The leaderboardCategory and leaderboardTimeScope properties affect the appearance of this view state.
Available on Mac OS X 10.8.2 and newer.

Super class NSViewControllerMBS

Super class NSResponderMBS

This class has no sub classes.


The items on this page are in the following plugins: MBS MacBase Plugin, MBS MacFrameworks Plugin.


GKFriendRequestComposeViewControllerMBS   -   GKInviteMBS





Links
MBS FileMaker tutorial videos