Gaming:loadScores: Difference between revisions

From GiderosMobile
m Text replacement - "<source" to "<syntaxhighlight"
m Text replacement - "</source>" to "</syntaxhighlight>"
 
Line 7: Line 7:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
  Gaming:loadScores(leaderboardId,timeSpan,collection,maxEntries)
  Gaming:loadScores(leaderboardId,timeSpan,collection,maxEntries)
</source>
</syntaxhighlight>
=== <translate>Parameters</translate> ===
=== <translate>Parameters</translate> ===
'''leaderboardId''': (string) <translate>Leaderboard Id</translate> <br/>
'''leaderboardId''': (string) <translate>Leaderboard Id</translate> <br/>

Latest revision as of 13:29, 13 July 2023


Available since: Gideros 2012.09
Class: Gaming

Description

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

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

Parameters

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