Event

@Serializable
sealed class Event

A sealed class representing analytics events in the application.

This class serves as the base for different types of analytics events that can be tracked throughout the application.

Inheritors

Types

Link copied to clipboard
@Serializable
data class Action(val actionName: String, val contextData: ContextData = ContextData(), val breadCrumbs: BreadCrumbs = BreadCrumbs()) : Event

Represents a user action event for analytics tracking.

Link copied to clipboard
@Serializable
data class View(val screenName: String, val contextData: ContextData = ContextData(screenName), val breadCrumbs: BreadCrumbs = BreadCrumbs()) : Event

Represents a view/screen event for analytics tracking.

Properties

Link copied to clipboard

The type of analytics event (State or Action)

Link copied to clipboard
abstract val breadCrumbs: BreadCrumbs

Breadcrumb navigation data associated with this event

Link copied to clipboard
abstract val contextData: ContextData

Context data associated with this event