GalleryExporter
class GalleryExporter(val fileProviderDescriptor: FileProviderDescriptor, val getGalleryItemsUseCase: GetGalleryItemsUseCase, val getAllGalleryUseCase: GetAllGalleryUseCase, val base64ToBitmapConverter: Base64ToBitmapConverter) : GalleryExportService, FileSavableExporter.BmpToFile, FileSavableExporter.FilesToZip(source)
Coordinates GalleryExporter behavior in the SDAI presentation layer.
Author
Dmitriy Moroz
Constructors
Link copied to clipboard
constructor(fileProviderDescriptor: FileProviderDescriptor, getGalleryItemsUseCase: GetGalleryItemsUseCase, getAllGalleryUseCase: GetAllGalleryUseCase, base64ToBitmapConverter: Base64ToBitmapConverter)
Properties
Link copied to clipboard
Exposes the base64ToBitmapConverter value used by the SDAI presentation layer.
Link copied to clipboard
Exposes the fileProviderDescriptor value used by the SDAI presentation layer.
Link copied to clipboard
Exposes the getAllGalleryUseCase value used by the SDAI presentation layer.
Link copied to clipboard
Exposes the getGalleryItemsUseCase value used by the SDAI presentation layer.
Functions
Link copied to clipboard
Executes the export step in the SDAI presentation layer.
Link copied to clipboard
Converts SDAI data with saveBitmapToFile.
Link copied to clipboard
private fun saveBitmapToFileImpl(data: Pair<AiGenerationResult, Base64ToBitmapConverter.Output>): File
Converts SDAI data with saveBitmapToFileImpl.
Link copied to clipboard
Performs the SDAI side effect handled by saveFilesToZip.