getRankingTopScores static method
Obtains the scores on the first page of a leaderboard from Huawei game server.
Implementation
static Future<RankingScores> getRankingTopScores(
String rankingId,
int timeDimension,
int maxResults,
int offsetPlayerRank,
int pageDirection,
) async {
final dynamic response = await _channel.invokeMethod(
'RankingsClient.getRankingTopScores',
<String, dynamic>{
'rankingId': rankingId,
'timeDimension': timeDimension,
'maxResults': maxResults,
'offsetPlayerRank': offsetPlayerRank,
'pageDirection': pageDirection,
},
);
return RankingScores.fromMap(Map<dynamic, dynamic>.from(response));
}