getPlayerCenteredRankingScores static method
Obtains scores of a leaderboard with the current player's score displayed in the page center from Huawei game server.
Implementation
static Future<RankingScores> getPlayerCenteredRankingScores(
String rankingId,
int timeDimension,
int maxResults,
int offsetPlayerRank,
int pageDirection,
) async {
final dynamic response = await _channel.invokeMethod(
'RankingsClient.getPlayerCenteredRankingScores',
<String, dynamic>{
'rankingId': rankingId,
'maxResults': maxResults,
'timeDimension': timeDimension,
'offsetPlayerRank': offsetPlayerRank,
'pageDirection': pageDirection,
},
);
return RankingScores.fromMap(Map<dynamic, dynamic>.from(response));
}