Gaming:loadPlayerCenteredScores: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 6: Line 6:
  Gaming:loadPlayerCenteredScores(leaderboardId,timeSpan,collection,maxEntries)
  Gaming:loadPlayerCenteredScores(leaderboardId,timeSpan,collection,maxEntries)
</source>
</source>
'''leaderboardId''': (string) Leaderboard Id ''''''<br/>
=== Parameters ===
'''leaderboardId''': (string) Leaderboard Id <br/>
'''timeSpan''': (number) Time range: `Gaming.TODAY`, `Gaming.WEEK` or `Gaming.ALL_TIME` '''optional'''<br/>
'''timeSpan''': (number) Time range: `Gaming.TODAY`, `Gaming.WEEK` or `Gaming.ALL_TIME` '''optional'''<br/>
'''collection''': (number) Player range: `Gaming.FRIENDS` or `Gaming.ALL_PLAYERS` '''optional'''<br/>
'''collection''': (number) Player range: `Gaming.FRIENDS` or `Gaming.ALL_PLAYERS` '''optional'''<br/>
'''maxEntries''': (number) Maximum number of entries to return '''optional'''<br/>
'''maxEntries''': (number) Maximum number of entries to return '''optional'''<br/>

Revision as of 09:41, 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