Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Leaderboards API

alextel69 edited this page Apr 19, 2014 · 1 revision

This doc refers to Games.Leaderboards.* methods and constants, which are responsible for Leaderboards API.

Games.Leaderboards.show(id:String):void

Shows default Leaderboards window with specified leaderboards

Games.Leaderboards.showAll():void

Shows default Leaderboards window with all leaderboards

Games.Leaderboards.submitScore(id:String,score:Number):void

Submit a score to a leaderboard for the currently signed in player. The score is ignored if it is worse (as defined by the leaderboard configuration) than a previously submitted score for the same player.