GenerationModal

sealed interface GenerationModal(source)

Defines the GenerationModal contract for the SDAI presentation layer.

Author

Dmitriy Moroz

Inheritors

Types

Link copied to clipboard
sealed interface Background : GenerationModal

Defines the Background contract for the SDAI presentation layer.

Link copied to clipboard
data class Communicating(val canCancel: Boolean = true, val hordeProcessStatus: HordeProcessStatus? = null) : GenerationModal

Carries Communicating data through the SDAI presentation layer.

Link copied to clipboard
data class Error(val error: UiText) : GenerationModal

Carries Error data through the SDAI presentation layer.

Link copied to clipboard
data class Generating(val canCancel: Boolean = false, val status: LocalDiffusionStatus? = null) : GenerationModal

Carries Generating data through the SDAI presentation layer.

Link copied to clipboard
sealed interface Image : GenerationModal

Defines the Image contract for the SDAI presentation layer.

Link copied to clipboard
data object None : GenerationModal

Provides the None singleton used by the SDAI presentation layer.