LeaderboardWidgetClickedListItemHyperskillAnalyticEvent

class LeaderboardWidgetClickedListItemHyperskillAnalyticEvent(currentTab: LeaderboardScreenFeature.Tab, leaderboardItem: LeaderboardItem) : HyperskillAnalyticEvent

Represents a click analytic event of the leaderboard item.

Parameters

currentTab

current tab of the leaderboard

JSON payload:

{
"route": "/leaderboard",
"action": "click",
"part": "leaderboard_day_tab | leaderboard_week_tab",
"target": "leaderboard_item",
"context":
{
"user_id": 1,
"position": 10,
"passed_problems": 100
}
}

See also

Constructors

constructor(currentTab: LeaderboardScreenFeature.Tab, leaderboardItem: LeaderboardItem)

Creates a click analytic event of the leaderboard item.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Event action, for example: click, view.

Link copied to clipboard
val context: Map<String, Any>? = null

Context that describes an event, for example: stepId, notificationId.

Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val params: Map<String, Any>
Link copied to clipboard

Event part where action occurred, for example: main, step_hints.

Link copied to clipboard

Event route path, for example: /home, /onboarding.

Link copied to clipboard
override val sources: Set<AnalyticSource>
Link copied to clipboard

Target that triggered event, for example: send, refresh.