PushNotificationClickedHyperskillAnalyticEvent

class PushNotificationClickedHyperskillAnalyticEvent(pushNotificationData: PushNotificationData) : HyperskillAnalyticEvent

Represents click on the remote push notification analytic event.

When the user interacts with remote notifications through the notification center or pop-up.

JSON payload:

{
"route": "None",
"action": "click",
"part": "notification",
"context":
{
"type": "STREAK_THREE" || "SELECT_FIRST_TRACK" || ...,
"category": "Routine learning" || "Re-engagement" || ...,
"image": "https://hyperskill.org/image.png",
"notification_id": "12345"
}
}

Constructors

constructor(pushNotificationData: PushNotificationData)

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.