KinesteX

Leaderboard Events

Events for leaderboard functionality.


EventData FieldsDescription
highlighted_userdata: objectSent once, when the user you highlighted (by username or userId) is found in the loaded leaderboard
exit_leaderboard-User left the leaderboard: the back button, or "View challenge" (shown when the leaderboard was not opened from the challenge page; opened from there, the button starts the challenge and sends challenge_started instead). KinesteX then opens backUrl, which defaults to the challenge page, so no exit_kinestex follows; only an empty backUrl closes KinesteX with exit_kinestex. Flutter types it as ExitLeaderboard

highlighted_user Data Structure:

typescript
1{
2  username: string,  // User's username
3  reps: number,      // Reps of the user's best attempt
4  accuracy: number,  // Accuracy of that attempt
5  position: number   // Leaderboard position (1-based)
6}