Difference between revisions of "FBInstant.getLeaderboardAsync"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Fetch a specific leaderboard belonging to this Instant Game.<br /> <br /> <source lang="lua"> =...") |
|||
Line 6: | Line 6: | ||
<br /> | <br /> | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | FBInstant.getLeaderboardAsync(name,callback) | |
</source> | </source> | ||
− | '''name | + | '''name''': (string) The name of the leaderboard. Each leaderboard for an Instant Game must have its own distinct name. ''''''<br/> |
− | '''callback | + | '''callback''': (function) A function that will be called with two arguments: Result with the matching leaderboard, rejecting if one is not found. An error code if the function failed. ''''''<br/> |
Revision as of 10:19, 23 August 2018
Available since: Gideros 2018.3
Description
Fetch a specific leaderboard belonging to this Instant Game.
FBInstant.getLeaderboardAsync(name,callback)
'name: (string) The name of the leaderboard. Each leaderboard for an Instant Game must have its own distinct name. '
'callback: (function) A function that will be called with two arguments: Result with the matching leaderboard, rejecting if one is not found. An error code if the function failed. '