Skip to main content
Version: 5.7.0

GetGroupLeaderboardViewByVersion

Method returns a view of group leaderboard results that centers on the current group. By using a non-current version id, the user can retrieve a historical group leaderboard.

ServiceOperation
leaderboardGET_GROUP_LEADERBOARD_VIEW

Method Parameters

ParameterDescription
leaderboardIdThe id of the leaderboard.
groupIdThe id of the group.
versionIdThe historical version to retrieve.
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";
int versionId = -1;
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.GetGroupLeaderboardViewByVersion(leaderboardId, groupId, versionId, sort, beforeCount, afterCount, successCallback, failureCallback);