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
open suspend override fun export(ids: List<Long>? = null): GalleryExportResult

Executes the export step in the SDAI presentation layer.

Link copied to clipboard
open fun saveBitmapToFile(fileName: String, bitmap: Bitmap): File

Converts SDAI data with saveBitmapToFile.

Link copied to clipboard

Converts SDAI data with saveBitmapToFileImpl.

Link copied to clipboard
open fun saveFilesToZip(files: List<File>): File

Performs the SDAI side effect handled by saveFilesToZip.