Skip to content

Most visited

Recently visited

navigation
added in API level 23

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

added in API level 23
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 dequeueInputImage() method, uses it, and then queues it back to this ImageWriter via the 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 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:

    This site uses cookies to store your preferences for site-specific language and display options.

    Get the latest Android developer news and tips that will help you find success on Google Play.

    * Required Fields

    Hooray!

    Browse this site in ?

    You requested a page in , but your language preference for this site is .

    Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

    This class requires API level or higher

    This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

    For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

    Take a short survey?
    Help us improve the Android developer experience.
    (Sep 2017 survey)