loadLeaderboardScores static method
Future<List<LeaderboardScoreData> ?>
loadLeaderboardScores({
- dynamic iOSLeaderboardID = "",
- dynamic androidLeaderboardID = "",
- required PlayerScope scope,
- required TimeScope timeScope,
- required int maxResults,
Get leaderboard scores as a list. Use this to build a custom UI. To show the device's default leaderboards screen use showLeaderboards.
Implementation
static Future<List<LeaderboardScoreData>?> loadLeaderboardScores(
{iOSLeaderboardID = "",
androidLeaderboardID = "",
required PlayerScope scope,
required TimeScope timeScope,
required int maxResults}) async {
return await Leaderboards.loadLeaderboardScores(
iOSLeaderboardID: iOSLeaderboardID,
androidLeaderboardID: androidLeaderboardID,
scope: scope,
timeScope: timeScope,
maxResults: maxResults);
}