getRealTimeRankingTopScores static method
Obtains scores on the first page of a leaderboard.
The data can be obtained from the local cache.
Implementation
static Future<RankingScores> getRealTimeRankingTopScores(
String rankingId,
int timeDimension,
int maxResults,
bool isRealTime,
) async {
final dynamic response = await _channel.invokeMethod(
'RankingsClient.getRankingTopScores',
<String, dynamic>{
'rankingId': rankingId,
'timeDimension': timeDimension,
'maxResults': maxResults,
'isRealTime': isRealTime,
},
);
return RankingScores.fromMap(Map<dynamic, dynamic>.from(response));
}