AnalyticsLogType

sealed interface AnalyticsLogType

Marker interface for individual analytics event types.

All analytics log types implement this interface and are organised into categories via AnalyticsLogCategory. Types should be accessed through their category for clarity and discoverability:

AnalyticsLogCategory.Social.Comment
AnalyticsLogCategory.Action.Click
AnalyticsLogCategory.Session.Login

The category property provides a typed reference back to the parent AnalyticsLogCategory, enabling programmatic grouping and filtering without relying on reflection or string comparisons:

fun log(type: AnalyticsLogType) {
if (type.category is AnalyticsLogCategory.Social) { ... }
}

See also

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The AnalyticsLogCategory this type belongs to

Link copied to clipboard
abstract val description: String

Detailed description of when to use this type

Link copied to clipboard
abstract val displayName: String

Human-readable name for UI display

Link copied to clipboard
abstract val icon: ImageVector

Material icon representing this log type in the UI