Skip to main content
Version: 5.7.0

GetGroupLeaderboardView

Retrieve a view of the group leaderboard surrounding the current group score.

ServiceOperation
leaderboardGET_GROUP_LEADERBOARD_VIEW

Method Parameters

ParameterDescription
leaderboardIdThe id of the leaderboard.
groupIdThe id of the group.
sortSort order of page. ("HIGH_TO_LOW" or "LOW_TO_HIGH")
beforeCountThe count of number of players before the current player to include.
afterCountThe count of number of players after the current player to include.

Usage

http://localhost:3000
string leaderboardId = "default";
string groupId = "actual_group_id";
SortOrder sort = BrainCloudSocialLeaderboard.SortOrder.HIGH_TO_LOW;
int beforeCount = 3;
int afterCount = 4;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.LeaderboardService.GetGroupLeaderboardView(leaderboardId, groupId, sort, beforeCount, afterCount, successCallback, failureCallback);