getRealTimePlayerCenteredRankingScores static method
Obtains scores of a leaderboard with the current player's score displayed in the page center.
The data can be obtained from the local cache.
Implementation
static Future<RankingScores> getRealTimePlayerCenteredRankingScores(
String rankingId,
int timeDimension,
int maxResults,
bool isRealTime,
) async {
final dynamic response = await _channel.invokeMethod(
'RankingsClient.getPlayerCenteredRankingScores',
<String, dynamic>{
'rankingId': rankingId,
'maxResults': maxResults,
'timeDimension': timeDimension,
'isRealTime': isRealTime,
},
);
return RankingScores.fromMap(Map<dynamic, dynamic>.from(response));
}