NoOpTelemetryRepository

A TelemetryRepository that drops everything it is given.

For previews and tests that render code which reports, and for the default of LocalTelemetry where nothing provides the real one.

Functions

Link copied to clipboard
open override fun logBreadcrumb(message: String, attributes: Map<String, String> = emptyMap())

Adds a breadcrumb to the crash log, for tracing what happened before a failure.

Link copied to clipboard
open override fun logEvent(event: AnalyticsEvent)
Link copied to clipboard
open override fun logScreenView(screenName: String, screenClass: String? = null)
Link copied to clipboard

Logs standard GA4 search event with parameter search_term.

Link copied to clipboard
fun AnalyticsReporter.logSelectContent(contentType: String, itemId: String)

Logs standard GA4 select_content event with parameters content_type and item_id.

Link copied to clipboard
fun AnalyticsReporter.logShare(method: String, contentType: String, itemId: String)

Logs standard GA4 share event with parameters method, content_type, and item_id.

Link copied to clipboard

Logs standard GA4 tutorial_begin event.

Link copied to clipboard

Logs standard GA4 tutorial_complete event.

Link copied to clipboard

Logs standard GA4 unlock_achievement event with parameter achievement_id.

Link copied to clipboard
fun AnalyticsReporter.logViewItem(itemId: String, itemName: String, itemCategory: String? = null)

Logs standard GA4 view_item event with parameters item_id, item_name, and optional item_category.

Link copied to clipboard
fun AnalyticsReporter.logViewItemList(itemListId: String? = null, itemListName: String? = null)

Logs standard GA4 view_item_list event with optional parameters item_list_id and item_list_name.

Link copied to clipboard
open override fun recordNonFatal(throwable: Throwable, attributes: Map<String, String> = emptyMap())

Records a non-fatal throwable that has no ViewModel context.

Link copied to clipboard
open override fun reportViewModelError(viewModelName: String, action: String, throwable: Throwable, extraKeys: Map<String, String> = emptyMap())

Reports a ViewModel flow failure with useful context.

Link copied to clipboard
open override fun setAnalyticsEnabled(enabled: Boolean)

Enables or disables analytics collection for the current process.

Link copied to clipboard
open override fun setCrashlyticsEnabled(enabled: Boolean)

Enables or disables crash reporting for the current process.

Link copied to clipboard
open override fun setPerformanceEnabled(enabled: Boolean)

Enables or disables performance monitoring for the current process.

Link copied to clipboard
open override fun setUserProperty(name: String, value: String?)
Link copied to clipboard
open override fun updateConsent(analyticsGranted: Boolean, adStorageGranted: Boolean, adUserDataGranted: Boolean, adPersonalizationGranted: Boolean)

Updates the consent configuration used by analytics and ads measurement.