AiutaAnalytics

interface AiutaAnalytics

Public interface for receiving analytics events from the Aiuta SDK.

This interface provides access to a stream of analytics events that are generated internally by the SDK during various operations such as try-on sessions, user interactions, and system events.

The analytics system allows you to:

  • Track user behavior and engagement

  • Implement custom analytics and reporting

  • Debug and troubleshoot SDK operations

val aiuta = aiuta { /* configuration */}
val analytics = aiuta.analytics

// Launch collecting analytics events
aiuta.analytics.analyticFlow.collect { event ->
when (event) {
is AiutaAnalyticsOnboardingEvent -> {
// Handle onboarding event
}
is AiutaAnalyticsTryOnEvent -> {
// Handle try-on event
}
// Handle other events...
}
}

See also

Properties

Link copied to clipboard
abstract val analyticFlow: Flow<AiutaAnalyticsEvent>

Flow of analytics events generated by the SDK.