getRealTimePlayerCenteredRankingScores static method

Future<RankingScores> getRealTimePlayerCenteredRankingScores(
  1. String rankingId,
  2. int timeDimension,
  3. int maxResults,
  4. bool isRealTime,
)

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));
}