public static interface ImageWriter.OnImageReleasedListener
android.media.ImageWriter.OnImageReleasedListener |
ImageWriter callback interface, used to to asynchronously notify the application of various ImageWriter events.
Public methods |
|
---|---|
abstract void |
onImageReleased(ImageWriter writer) Callback that is called when an input Image is released back to ImageWriter after the data consumption. |
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:
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.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: