Analytics

class Analytics(val highlightedLogType1: AnalyticsLogType? = Click, val highlightedLogType2: AnalyticsLogType? = Error, val highlightedLogType3: AnalyticsLogType? = null) : Module

Analytics module for the DevView developer tools suite.

This module provides real-time analytics event monitoring and visualization, allowing developers to track and debug analytics integration during development and testing.

Features

  • Real-time analytics event logging

  • Tabular display of events with timestamps

  • Multiple event type support (SCREEN, EVENT, CUSTOM)

  • Thread-safe in-memory storage

  • Reactive UI updates

Integration

The Analytics module integrates with the DevView core framework as part of the LOGGING section. It provides navigation destinations and UI components that can be accessed through the DevView menu.

Module Configuration

val devView = DevView(
modules = listOf(
Analytics,
// other modules...
)
)

Logging Events

AnalyticsLogger.log(
AnalyticsLog(
tag = "user_action",
screenClass = "HomeScreen",
timestamp = System.currentTimeMillis(),
type = AnalyticsLogType.EVENT
)
)

See also

Constructors

Link copied to clipboard
constructor(highlightedLogType1: AnalyticsLogType? = Click, highlightedLogType2: AnalyticsLogType? = Error, highlightedLogType3: AnalyticsLogType? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val destinations: PersistentMap<KClass<out NavKey>, DestinationMetadata>

Maps each navigation destination in this module to its DestinationMetadata.

Link copied to clipboard
open override val entryDestination: NavKey
Link copied to clipboard
open val icon: ImageVector
Link copied to clipboard
open val moduleName: String
Link copied to clipboard
open override val registerSerializers: PolymorphicModuleBuilder<NavKey>.() -> Unit

Registers serializers for navigation destinations.

Link copied to clipboard
open override val section: Section

The section this module belongs to in the DevView menu.

Link copied to clipboard
open val subtitle: String?

Functions

Link copied to clipboard
Link copied to clipboard
open override fun EntryProviderScope<NavKey>.registerContent(onNavigateBack: () -> Unit, onNavigate: (NavKey) -> Unit, bottomPadding: Dp)

Registers the composable content for each navigation destination.