GameCenterLeaderboard.Attributes
Declaration
object GameCenterLeaderboard.AttributesProperties
| Name | Type | Description |
|---|---|---|
activityProperties | StringToStringMap | |
archived | boolean | |
defaultFormatter | GameCenterLeaderboardFormatter | |
recurrenceDuration | duration | |
recurrenceRule | string | |
recurrenceStartDate | date-time | |
referenceName | string | |
scoreRangeEnd | number | |
scoreRangeStart | number | |
scoreSortType | string | |
submissionType | string | |
vendorIdentifier | string | |
visibility | string |
Discussion
Use leaderboard formatters to specify the unit of measurement for a Game Center leaderboard. There is a new required attribute defaultFormatter when you use Create a leaderboard, which gives all your localizations the same formatter. You can also optionally use formatterOverride to override a specific leaderboard localization when calling Create a leaderboard localization or Modify a leaderboard localization.
Before App Store Connect API version 3.0, formatters were based on localizations and were required for each localization. Legacy leaderboards created before the new addition of the Game Center APIs don’t have a defaultFormatter value; the value is null. Any localizations created before the new addition of the Game Center APIs have a formatterOverride.