Home > @world-wide-lab/client > Session > updateLeaderboardScore
Session.updateLeaderboardScore() method
Update a score on a leaderboard.
Signature:
typescript
updateLeaderboardScore(leaderboardId: string, leaderboardScoreId: number, leaderboardScoreData: LeaderboardScoreData): Promise<boolean>;
Parameters
Parameter | Type | Description |
---|---|---|
leaderboardId | string | The id of the leaderboard to update the score on |
leaderboardScoreId | number | The id of the score to update (from addScoreToLeaderboard) |
leaderboardScoreData | The data to update on the leaderboard |
Promise<boolean>
true if the score was updated successfully