GenerationFormUpdateEvent

Coordinates GenerationFormUpdateEvent behavior in the SDAI presentation layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
sealed interface Payload

Defines the Payload contract for the SDAI presentation layer.

Properties

Link copied to clipboard
private val sImg2Img: MutableStateFlow<GenerationFormUpdateEvent.Payload>

Exposes the sImg2Img value used by the SDAI presentation layer.

Link copied to clipboard
private val sRoute: MutableSharedFlow<AiGenerationResult.Type>

Exposes the sRoute value used by the SDAI presentation layer.

Link copied to clipboard
private val sTxt2Img: MutableStateFlow<GenerationFormUpdateEvent.Payload>

Exposes the sTxt2Img value used by the SDAI presentation layer.

Functions

Link copied to clipboard
fun clear()

Performs the SDAI side effect handled by clear.

Link copied to clipboard

Performs the SDAI side effect handled by clearImg2Img.

Link copied to clipboard

Performs the SDAI side effect handled by clearTxt2Img.

Link copied to clipboard

Executes the consumeImg2ImgForm step in the SDAI presentation layer.

Link copied to clipboard

Executes the consumeTxt2ImgForm step in the SDAI presentation layer.

Link copied to clipboard

Loads SDAI data through observeImg2ImgForm.

Link copied to clipboard

Loads SDAI data through observeRoute.

Link copied to clipboard

Loads SDAI data through observeTxt2ImgForm.

Link copied to clipboard
fun update(generation: AiGenerationResult, route: AiGenerationResult.Type, inputImage: Boolean)

Performs the SDAI side effect handled by update.