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(namecallback,)
+
FBInstant.getLeaderboardAsync(name,callback)
 
</source>
 
</source>
'''name:''' (string) The name of the leaderboard. Each leaderboard for an Instant Game must have its own distinct name. ''''''<br/>
+
'''name''': (string) The name of the leaderboard. Each leaderboard for an Instant Game must have its own distinct name. ''''''<br/>
'''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/>
+
'''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. '