loadLeaderboardScores static method

Future<List<LeaderboardScoreData>?> loadLeaderboardScores({
  1. dynamic iOSLeaderboardID = "",
  2. dynamic androidLeaderboardID = "",
  3. required PlayerScope scope,
  4. required TimeScope timeScope,
  5. 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);
}