Platforms to show: All Mac Windows Linux Cross-Platform

Back to GKGameCenterViewControllerMBS class.

GKGameCenterViewControllerMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GameKit MBS MacFrameworks Plugin 13.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The constructor.

Available on Mac OS X 10.8.2 and newer.

GKGameCenterViewControllerMBS.leaderboardCategory as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GameKit MBS MacFrameworks Plugin 13.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The named leaderboard that is displayed by the view controller.

The category property must either be empty or it must match a category identifier you defined when you created your leaderboards on iTunes Connect. If empty, the view displays scores for the aggregate leaderboard. Default is empty.

When the leaderboard is presented, the value of this property determines which leaderboard content is displayed to the player. As the player changes which leaderboard content they view, the leaderboardCategory property is automatically updated. For example, to preserve the player's selections, you can read the leaderboardCategory property after the screen is dismissed, and set that value the next time you initialize the view controller.

Available on Mac OS X 10.8.2 and newer.
(Read and Write computed property)

GKGameCenterViewControllerMBS.leaderboardTimeScope as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GameKit MBS MacFrameworks Plugin 13.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A time filter used to restrict which scores are displayed to the player.

This property determines which tab view of the scores screen is displayed to the player. The default value is GKLeaderboardTimeScopeAllTime, which shows the best score each player has earned. For more information on time scopes, see GKLeaderboardMBS Class.

When the leaderboard is presented, the value of this property determines the initial tab that is displayed to the player. As the player changes which tab they view, the leaderboardTimeScope property is automatically updated. For example, to preserve the player's selections, you can read the leaderboardTimeScope property after the screen is dismissed, and set that value the next time you initialize the view controller.

Available on Mac OS X 10.8.2 and newer.
(Read and Write computed property)

GKGameCenterViewControllerMBS.viewState as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GameKit MBS MacFrameworks Plugin 13.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The content displayed by the Game Center controller.

See State* constants for possible values. When you first present the Game Center view controller, the content displayed by the view controller is determined by this property. If the player navigates to different content, the view state is automatically updated. For example, to preserve the player's selections, you can read the viewState property after the screen is dismissed, and set that value the next time you initialize the view controller.

Available on Mac OS X 10.8.2 and newer.
(Read and Write computed property)

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


The biggest plugin in space...