TextToImageIntentProcessor
internal class TextToImageIntentProcessor(val router: TextToImageRouter, val updateState: ((TextToImageState) -> TextToImageState) -> Unit, val generate: () -> Unit, val cancelGeneration: () -> Unit, val saveImage: (String) -> Unit, val shareImage: (String) -> Unit, val saveGenerationResults: (List<AiGenerationResult>) -> Unit, val viewGenerationResult: (AiGenerationResult) -> Unit, val reportGenerationResult: (AiGenerationResult) -> Unit, val applyGenerationResult: (AiGenerationResult) -> Unit)(source)
Coordinates TextToImageIntentProcessor behavior in the SDAI presentation layer.
Author
Dmitriy Moroz
Constructors
Link copied to clipboard
constructor(router: TextToImageRouter, updateState: ((TextToImageState) -> TextToImageState) -> Unit, generate: () -> Unit, cancelGeneration: () -> Unit, saveImage: (String) -> Unit, shareImage: (String) -> Unit, saveGenerationResults: (List<AiGenerationResult>) -> Unit, viewGenerationResult: (AiGenerationResult) -> Unit, reportGenerationResult: (AiGenerationResult) -> Unit, applyGenerationResult: (AiGenerationResult) -> Unit)
Properties
Link copied to clipboard
Exposes the applyGenerationResult value used by the SDAI presentation layer.
Link copied to clipboard
Exposes the cancelGeneration value used by the SDAI presentation layer.
Link copied to clipboard
Exposes the reportGenerationResult value used by the SDAI presentation layer.
Link copied to clipboard
Exposes the router value used by the SDAI presentation layer.
Link copied to clipboard
Exposes the saveGenerationResults value used by the SDAI presentation layer.
Link copied to clipboard
Exposes the shareImage value used by the SDAI presentation layer.
Link copied to clipboard
Exposes the updateState value used by the SDAI presentation layer.
Link copied to clipboard
Exposes the viewGenerationResult value used by the SDAI presentation layer.