# Print output for @column tags ?> ImageWriter.OnImageReleasedListener - Android SDK | Android Developers

Most visited

Recently visited

ImageWriter.OnImageReleasedListener

public static interface ImageWriter.OnImageReleasedListener

android.media.ImageWriter.OnImageReleasedListener


ImageWriter callback interface, used to to asynchronously notify the application of various ImageWriter events.

Summary

Public methods

abstract void onImageReleased(ImageWriter writer)

Callback that is called when an input Image is released back to ImageWriter after the data consumption.

Public methods

onImageReleased

public abstract void onImageReleased (ImageWriter writer)

Callback that is called when an input Image is released back to ImageWriter after the data consumption.

The client can use this callback to be notified that an input Image has been consumed and released by the downstream consumer. More specifically, this callback will be fired for below cases:

  • The application dequeues an input Image via the ImageWriter#dequeueInputImage method, uses it, and then queues it back to this ImageWriter via the ImageWriter#queueInputImage method. After the downstream consumer uses and releases this image to this ImageWriter, this callback will be fired. This image will be available to be dequeued after this callback.
  • The application obtains an Image from some other component (e.g. an ImageReader), uses it, and then queues it to this ImageWriter via ImageWriter#queueInputImage. After the downstream consumer uses and releases this image to this ImageWriter, this callback will be fired.
  • Parameters
    writer ImageWriter: the ImageWriter the callback is associated with.

    See also: