ImageToImageIntentProcessor

internal class ImageToImageIntentProcessor(val router: ImageToImageRouter, val updateState: ((ImageToImageState) -> ImageToImageState) -> Unit, val pickImage: (ImageToImagePickSource) -> Unit, val pickRandomImage: () -> 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, Boolean) -> Unit)(source)

Coordinates ImageToImageIntentProcessor behavior in the SDAI presentation layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(router: ImageToImageRouter, updateState: ((ImageToImageState) -> ImageToImageState) -> Unit, pickImage: (ImageToImagePickSource) -> Unit, pickRandomImage: () -> Unit, generate: () -> Unit, cancelGeneration: () -> Unit, saveImage: (String) -> Unit, shareImage: (String) -> Unit, saveGenerationResults: (List<AiGenerationResult>) -> Unit, viewGenerationResult: (AiGenerationResult) -> Unit, reportGenerationResult: (AiGenerationResult) -> Unit, applyGenerationResult: (AiGenerationResult, Boolean) -> Unit)

Properties

Link copied to clipboard

Exposes the applyGenerationResult value used by the SDAI presentation layer.

Link copied to clipboard
private val cancelGeneration: () -> Unit

Exposes the cancelGeneration value used by the SDAI presentation layer.

Link copied to clipboard
private val generate: () -> Unit

Exposes the generate value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the pickImage value used by the SDAI presentation layer.

Link copied to clipboard
private val pickRandomImage: () -> Unit

Exposes the pickRandomImage 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
private val saveImage: (String) -> Unit

Exposes the saveImage value used by the SDAI presentation layer.

Link copied to clipboard
private val shareImage: (String) -> Unit

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.

Functions

Link copied to clipboard

Executes the process step in the SDAI presentation layer.