ImageReader.MaxImages Property

Definition

Maximum number of images that can be acquired from the ImageReader by any time (for example, with #acquireNextImage).

public virtual int MaxImages { [Android.Runtime.Register("getMaxImages", "()I", "GetGetMaxImagesHandler")] get; }
[<get: Android.Runtime.Register("getMaxImages", "()I", "GetGetMaxImagesHandler")>]
member this.MaxImages : int

Property Value

Maximum number of images for this ImageReader.

Attributes

Remarks

Maximum number of images that can be acquired from the ImageReader by any time (for example, with #acquireNextImage).

An image is considered acquired after it's returned by a function from ImageReader, and until the Image is Image#close closed to release the image back to the ImageReader.

Attempting to acquire more than maxImages concurrently will result in the acquire function throwing a IllegalStateException. Furthermore, while the max number of images have been acquired by the ImageReader user, the producer enqueueing additional images may stall until at least one image has been released.

Java documentation for android.media.ImageReader.getMaxImages().

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

See also