---
title: "ImageGenerationListener"
sidebar_label: "ImageGenerationListener"
description: "Kotlin binding reference: ImageGenerationListener."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[ImageGenerationListener](index.md)

# ImageGenerationListener

[common]\
interface [ImageGenerationListener](index.md)

The calls an image-generation request makes on the model's worker thread, in order: [onImages](onImages.md) once with the pictures and the seed the model drew, then [onDone](onDone.md); or [onError](onError.md) alone when the request fails.

## Functions

| Name | Summary |
|---|---|
| [onDone](onDone.md) | [common]<br>abstract fun [onDone](onDone.md)(report: [ImageGenerationReport](../ImageGenerationReport/index.md))<br>The request ended: its facts. A canceled request ends here with [ImageGenerationReport.canceled](../ImageGenerationReport/canceled.md) true. |
| [onError](onError.md) | [common]<br>abstract fun [onError](onError.md)(message: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html))<br>The request failed; the model's message. The request is over. |
| [onImages](onImages.md) | [common]<br>abstract fun [onImages](onImages.md)(images: [GeneratedImages](../GeneratedImages/index.md))<br>The pictures, one per requested image, and the seed they were drawn from. |