Gaming:loadScores

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This page contains changes which are not marked for translation.


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