//clika-runtime/io.clika.modelverse/ImageGenerationListener
ImageGenerationListener
[common]
interface ImageGenerationListener
The calls an image-generation request makes on the model's worker thread, in order: onImages once with the pictures and the seed the model drew, then onDone; or onError alone when the request fails.
Functions
| Name | Summary |
|---|---|
| onDone | [common] abstract fun onDone(report: ImageGenerationReport) The request ended: its facts. A canceled request ends here with ImageGenerationReport.canceled true. |
| onError | [common] abstract fun onError(message: String) The request failed; the model's message. The request is over. |
| onImages | [common] abstract fun onImages(images: GeneratedImages) The pictures, one per requested image, and the seed they were drawn from. |