StableDiffusionCppGenerationRepositoryImpl
internal class StableDiffusionCppGenerationRepositoryImpl(mediaStoreGateway: MediaStoreGateway, localDataSource: GenerationResultDataSource.Local, backgroundWorkObserver: BackgroundWorkObserver, preferenceManager: PreferenceManager, val stableDiffusionCpp: StableDiffusionCpp, val downloadableLocalDataSource: DownloadableModelDataSource.Local, val modelFileStore: DownloadableModelFileStore) : CoreGenerationRepository, StableDiffusionCppGenerationRepository(source)
Constructors
Link copied to clipboard
constructor(mediaStoreGateway: MediaStoreGateway, localDataSource: GenerationResultDataSource.Local, backgroundWorkObserver: BackgroundWorkObserver, preferenceManager: PreferenceManager, stableDiffusionCpp: StableDiffusionCpp, downloadableLocalDataSource: DownloadableModelDataSource.Local, modelFileStore: DownloadableModelFileStore)
Properties
Link copied to clipboard
Exposes the backgroundWorkObserver value used by the SDAI data layer.
Link copied to clipboard
Link copied to clipboard
Exposes the localDataSource value used by the SDAI data layer.
Link copied to clipboard
Exposes the mediaStoreGateway value used by the SDAI data layer.
Link copied to clipboard
Link copied to clipboard
Exposes the preferenceManager value used by the SDAI data layer.
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Executes the exportAsync step in the SDAI data layer.
Link copied to clipboard
Executes the exportToMediaStoreAsync step in the SDAI data layer.
Link copied to clipboard
private suspend fun generate(payload: TextToImagePayload, modelPath: String, modelName: String): AiGenerationResult
Link copied to clipboard
Link copied to clipboard
Loads SDAI data through getInfoAsync.
Link copied to clipboard
Performs the SDAI side effect handled by insertGenerationResult.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard