Difference between revisions of "Gaming:loadPlayerCenteredScores"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2012.09<br/>
 
'''Available since:''' Gideros 2012.09<br/>
 
=== Description ===
 
=== Description ===
<translate>Fetch player leaderboard entries. Either [[[Event.PLAYER_SCORE_COMPLETE` or `Event.PLAYER_SCORE_ERROR]]] will be triggered.</translate>
+
<translate>Fetch player leaderboard entries. Either [[Event.PLAYER_SCORE_COMPLETE` or `Event.PLAYER_SCORE_ERROR]] will be triggered.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
  Gaming:loadPlayerCenteredScores(leaderboardId,timeSpan,collection,maxEntries)
 
  Gaming:loadPlayerCenteredScores(leaderboardId,timeSpan,collection,maxEntries)
Line 8: Line 8:
 
=== Parameters ===
 
=== Parameters ===
 
'''leaderboardId''': (string) <translate>Leaderboard Id</translate> <br/>
 
'''leaderboardId''': (string) <translate>Leaderboard Id</translate> <br/>
'''timeSpan''': (number) <translate>Time range: [[[Gaming.TODAY`, `Gaming.WEEK` or `Gaming.ALL_TIME]]]</translate> '''optional'''<br/>
+
'''timeSpan''': (number) <translate>Time range: [[Gaming.TODAY`, `Gaming.WEEK` or `Gaming.ALL_TIME]]</translate> '''optional'''<br/>
'''collection''': (number) <translate>Player range: [[[Gaming.FRIENDS` or `Gaming.ALL_PLAYERS]]]</translate> '''optional'''<br/>
+
'''collection''': (number) <translate>Player range: [[Gaming.FRIENDS` or `Gaming.ALL_PLAYERS]]</translate> '''optional'''<br/>
 
'''maxEntries''': (number) <translate>Maximum number of entries to return</translate> '''optional'''<br/>
 
'''maxEntries''': (number) <translate>Maximum number of entries to return</translate> '''optional'''<br/>

Revision as of 13:54, 23 August 2018

Available since: Gideros 2012.09

Description

Fetch player leaderboard entries. Either Event.PLAYER_SCORE_COMPLETE` or `Event.PLAYER_SCORE_ERROR will be triggered.

 Gaming:loadPlayerCenteredScores(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