AiutaTryOnGenerationsHistoryFeatureDataProviderCustom

Custom implementation of AiutaTryOnGenerationsHistoryFeatureDataProvider.

This interface allows for custom implementation of history data management, providing methods to manage generated images and their associated products.

Properties

Link copied to clipboard
abstract val generatedImages: StateFlow<List<AiutaGeneratedImage>>

Flow of currently stored generated images

Functions

Link copied to clipboard
abstract suspend fun addGeneratedImages(productIds: List<String>, images: List<AiutaGeneratedImage>)

Adds newly generated images to the history.

Link copied to clipboard
abstract suspend fun deleteGeneratedImages(images: List<AiutaGeneratedImage>)

Removes specified images from the history.