Platforms to show: All Mac Windows Linux Cross-Platform
GKLeaderboardMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Your game uses GKLeaderboard objects when it wants to analyze scoring information or when it wants to create its own custom leaderboard screens.
see also
https://developer.apple.com/library/prerelease/mac/#documentation/GameKit/Reference/GKLeaderboard_Ref/Reference/Reference.html
- 5 properties
- property Handle as Integer
- property category as string
- property playerScope as Integer
- property range as NSRangeMBS
- property timeScope as Integer
- 9 methods
- method Constructor
- method Constructor(playerIDs() as string)
- method groupIdentifier as string
- method isLoading as boolean
- method loadScores(tag as Variant = nil)
- method localPlayerScore as GKScoreMBS
- method maxRange as Integer
- method scores as GKScoreMBS()
- method title as string
- 4 shared methods
- shared method Available as boolean
- shared method loadCategories(tag as Variant = nil)
- shared method loadLeaderboards(tag as Variant = nil)
- shared method setDefaultLeaderboard(categoryID as string, tag as Variant = nil)
- 5 constants
Leaderboard Player Scope
Constant | Value | Description |
---|---|---|
GKLeaderboardPlayerScopeFriendsOnly | 1 |
Only friends of the local player should be considered when generating the list of scores. |
GKLeaderboardPlayerScopeGlobal | 0 |
All players on Game Center should be considered when generating the list of scores. |
Leaderboard Time Scope
Constant | Value | Description |
---|---|---|
GKLeaderboardTimeScopeAllTime | 2 |
Each player's best score is returned. |
GKLeaderboardTimeScopeToday | 0 |
Each player is restricted to scores recorded in the past 24 hours. |
GKLeaderboardTimeScopeWeek | 1 |
Each player is restricted to scores recorded in the past week. |
This class has no sub classes.
Some events using this class:
- GameKitMBS.loadLeaderboardsCompleted(Leaderboards() as GKLeaderboardMBS, error as NSErrorMBS, tag as Variant)
- GameKitMBS.loadScoresCompleted(Leaderboard as GKLeaderboardMBS, scores() as GKScoreMBS, error as NSErrorMBS, tag as Variant)
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
GKInviteMBS - GKLeaderboardViewControllerMBS