AnalyticsCaptureClient
class AnalyticsCaptureClient(delegate: AnalyticsClient, debugStore: AnalyticsDebugStore, clockMs: () -> Long = System::currentTimeMillis, logger: KommonLogger = NoOpLogger) : AnalyticsClient
Decorates an AnalyticsClient, logging every call into an AnalyticsDebugStore (e.g. for an in-app "recent analytics events" debug screen) before forwarding to delegate.
Capture is observational: a failing debugStore is logged to logger and never stops the call from reaching delegate.
Constructors
Link copied to clipboard
constructor(delegate: AnalyticsClient, debugStore: AnalyticsDebugStore, clockMs: () -> Long = System::currentTimeMillis, logger: KommonLogger = NoOpLogger)