Difference between revisions of "Gaming:loadScores"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.09<br/> === Description === Fetch leaderboard entries. Either `Event.LOAD_SCORES_COMPLETE` or `Event.LOAD_SCORES_ERROR` will be t...")
 
Line 4: Line 4:
 
Fetch leaderboard entries. Either `Event.LOAD_SCORES_COMPLETE` or `Event.LOAD_SCORES_ERROR` will be triggered.
 
Fetch leaderboard entries. Either `Event.LOAD_SCORES_COMPLETE` or `Event.LOAD_SCORES_ERROR` will be triggered.
 
<source lang="lua">
 
<source lang="lua">
= Gaming:loadScores(leaderboardIdtimeSpancollectionmaxEntries,)
+
Gaming:loadScores(leaderboardId,timeSpan,collection,maxEntries)
 
</source>
 
</source>
 
'''leaderboardId:''' (string) Leaderboard Id ''''''<br/>
 
'''leaderboardId:''' (string) Leaderboard Id ''''''<br/>

Revision as of 11:11, 23 August 2018

Available since: Gideros 2012.09

Description

Fetch leaderboard entries. Either `Event.LOAD_SCORES_COMPLETE` or `Event.LOAD_SCORES_ERROR` will be triggered.

 Gaming:loadScores(leaderboardId,timeSpan,collection,maxEntries)

'leaderboardId: (string) Leaderboard Id '
timeSpan: (number) Time range: `Gaming.TODAY`, `Gaming.WEEK` or `Gaming.ALL_TIME` optional
collection: (number) Player range: `Gaming.FRIENDS` or `Gaming.ALL_PLAYERS` optional
maxEntries: (number) Maximum number of entries to return optional