SdaiWorkerFactory

class SdaiWorkerFactory(val backgroundWorkObserver: BackgroundWorkObserver, val pushNotificationManager: PushNotificationManager, val preferenceManager: PreferenceManager, val textToImageUseCase: TextToImageUseCase, val imageToImageUseCase: ImageToImageUseCase, val observeHordeProcessStatusUseCase: ObserveHordeProcessStatusUseCase, val observeLocalDiffusionProcessStatusUseCase: ObserveLocalDiffusionProcessStatusUseCase, val interruptGenerationUseCase: InterruptGenerationUseCase, val fileProviderDescriptor: FileProviderDescriptor, val activityIntentProvider: ActivityIntentProvider) : WorkerFactory(source)

Coordinates SdaiWorkerFactory behavior in the SDAI background work feature layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(backgroundWorkObserver: BackgroundWorkObserver, pushNotificationManager: PushNotificationManager, preferenceManager: PreferenceManager, textToImageUseCase: TextToImageUseCase, imageToImageUseCase: ImageToImageUseCase, observeHordeProcessStatusUseCase: ObserveHordeProcessStatusUseCase, observeLocalDiffusionProcessStatusUseCase: ObserveLocalDiffusionProcessStatusUseCase, interruptGenerationUseCase: InterruptGenerationUseCase, fileProviderDescriptor: FileProviderDescriptor, activityIntentProvider: ActivityIntentProvider)

Properties

Link copied to clipboard

Exposes the activityIntentProvider value used by the SDAI background work feature layer.

Link copied to clipboard

Exposes the backgroundWorkObserver value used by the SDAI background work feature layer.

Link copied to clipboard

Exposes the fileProviderDescriptor value used by the SDAI background work feature layer.

Link copied to clipboard

Exposes the imageToImageUseCase value used by the SDAI background work feature layer.

Link copied to clipboard

Exposes the interruptGenerationUseCase value used by the SDAI background work feature layer.

Link copied to clipboard

Exposes the observeHordeProcessStatusUseCase value used by the SDAI background work feature layer.

Exposes the observeLocalDiffusionProcessStatusUseCase value used by the SDAI background work feature layer.

Link copied to clipboard

Exposes the preferenceManager value used by the SDAI background work feature layer.

Link copied to clipboard

Exposes the pushNotificationManager value used by the SDAI background work feature layer.

Link copied to clipboard

Exposes the textToImageUseCase value used by the SDAI background work feature layer.

Functions

Link copied to clipboard
open override fun createWorker(appContext: Context, workerClassName: String, workerParameters: WorkerParameters): ListenableWorker?

Creates the SDAI value produced by createWorker.

Link copied to clipboard