AnalyticsLog
data class AnalyticsLog(val tag: String, val screenClass: String, val timestamp: Long, val type: AnalyticsLogType)
Represents a single analytics event log entry.
This immutable data class captures all essential information about an analytics event, including what happened (tag), where it happened (screenClass), when it happened (timestamp), and what type of event it was (type).
The class automatically handles timestamp formatting for display purposes through the formattedTimestamp property.
See also
Samples
val screenLog = AnalyticsLog(
tag = "HomeScreen",
screenClass = "com.example.ui.HomeScreen",
timestamp = Clock.System.now().toEpochMilliseconds(),
type = AnalyticsLogCategory.Screen.View
)Content copied to clipboard