ImageWriter.IOnImageReleasedListener.OnImageReleased(ImageWriter) Method

Definition

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

[Android.Runtime.Register("onImageReleased", "(Landroid/media/ImageWriter;)V", "GetOnImageReleased_Landroid_media_ImageWriter_Handler:Android.Media.ImageWriter/IOnImageReleasedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=23)]
public void OnImageReleased (Android.Media.ImageWriter? writer);
[<Android.Runtime.Register("onImageReleased", "(Landroid/media/ImageWriter;)V", "GetOnImageReleased_Landroid_media_ImageWriter_Handler:Android.Media.ImageWriter/IOnImageReleasedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=23)>]
abstract member OnImageReleased : Android.Media.ImageWriter -> unit

Parameters

writer
ImageWriter

the ImageWriter the callback is associated with.

Attributes

Remarks

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: <li>The application dequeues an input Image via the ImageWriter#dequeueInputImage dequeueInputImage() method, uses it, and then queues it back to this ImageWriter via the ImageWriter#queueInputImage 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.</li> <li>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 queueInputImage(). After the downstream consumer uses and releases this image to this ImageWriter, this callback will be fired.</li>

Java documentation for android.media.ImageWriter.OnImageReleasedListener.onImageReleased(android.media.ImageWriter).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to