typeproperty and can have one of the following values:
standard: This type of leaderboard is one based on players' achievement points. Whenever an achievement is earned, then the points for all of their earned achievements are added together and recorded. This is done automatically and for each time span. No other customization is required.
session: This type of leaderboard is nearly identical to the
standardtype. The difference is that it only reflects achievement points that have been earned within the context of a session.
custom: A custom leaderboard is one where the players' scores must be uploaded directly. When a player's score is submitted for a custom leaderboard, then it will be compared to the player's old score on that leaderboard, if it exists. If none exist, then the new one will be recorded. If the new one is better than the old one, then the new one will be added and the old one will be forgotten. This is done for each time span. Again, no other customization is required.
typeis set to
session), a custom session ID is required. This ID is used when reporting activity if the activity took place within some sort of custom session. Whenever activity is reported when a custom session ID is provided, then those activities will be processed within such a context first.
orderingproperty determines how the scores are interpreted as well as how rankings are determined. It can have one of the following values:
larger-is-better: These leaderboards consider larger scores as better than lower ones.
smaller-is-better: These leaderboards consider smaller scores as better than larger ones.
score_preferenceproperty determines how new scores are compared to old scores when updating a given leaderboard. This applies to all leaderboard types and is applying the same regardless of the leaderboard's
score_preferencecan be set to one of the following values:
prefer-higher: When comparing a new score to an old one, the new one will be added if it's greater than the old one.
prefer-lower: When comparing a new score to an old one, the new one will be added if it's less than the old one.
prefer-first: The first score will be added. All subsequent scores will be ignored.
prefer-last: Each score that is submitted will added. Any previous scores will be removed.