BackgroundTaskManagerImpl

Implements BackgroundTaskManager behavior in the SDAI background work feature layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun cancelAll(): Result<Unit>

Executes the cancelAll step in the SDAI background work feature layer.

Link copied to clipboard
private fun readPayload(fileName: String): ByteArray?

Loads SDAI data through readPayload.

Link copied to clipboard
open override fun retryLastImageToImageTask(): Result<Unit>

Executes the retryLastImageToImageTask step in the SDAI background work feature layer.

Link copied to clipboard
open override fun retryLastTextToImageTask(): Result<Unit>

Executes the retryLastTextToImageTask step in the SDAI background work feature layer.

Link copied to clipboard
private inline fun <W : ListenableWorker> runWork(bytes: ByteArray, fileName: String)

Executes the runWork step in the SDAI background work feature layer.

Link copied to clipboard
open override fun scheduleImageToImageTask(payload: ImageToImagePayload)

Executes the scheduleImageToImageTask step in the SDAI background work feature layer.

Link copied to clipboard
open override fun scheduleTextToImageTask(payload: TextToImagePayload)

Executes the scheduleTextToImageTask step in the SDAI background work feature layer.

Link copied to clipboard
private fun writePayload(bytes: ByteArray, fileName: String)

Executes the writePayload step in the SDAI background work feature layer.