Package-level declarations

Properties

Link copied to clipboard

The TelemetryRepository composables report through: screen views, screen states, and the GA4 events a component logs for its own taps.

Functions

Link copied to clipboard

Logs a GA4 event for reusable UI components when both the controller and event data exist.

Link copied to clipboard
fun ProvideTelemetry(telemetryRepository: TelemetryRepository = rememberTelemetry(), content: @Composable () -> Unit)

Provides telemetryRepository as LocalTelemetry to content. Call it once at the root of a composition, around the theme.

Link copied to clipboard

The TelemetryRepository to provide at a composition's root: the one an outer composition provides, else the app's Koin binding, else NoOpTelemetryRepository. For a root that already has a CompositionLocalProvider and adds LocalTelemetry provides rememberTelemetry() to it.