Register now for Android Dev Summit 2019!

ImageAnalysis.ImageReaderMode

public static final enum ImageAnalysis.ImageReaderMode
extends Enum<ImageAnalysis.ImageReaderMode>

java.lang.Object
   ↳ java.lang.Enum<androidx.camera.core.ImageAnalysis.ImageReaderMode>
     ↳ androidx.camera.core.ImageAnalysis.ImageReaderMode


The different ways that the image sent to the analyzer is acquired from the underlying ImageReader. This corresponds to acquireLatestImage or acquireNextImage in ImageReader.

See also:

Summary

Enum values

ImageAnalysis.ImageReaderMode  ACQUIRE_LATEST_IMAGE

Acquires the latest image in the queue, discarding any images older than the latest. 

ImageAnalysis.ImageReaderMode  ACQUIRE_NEXT_IMAGE

Acquires the next image in the queue. 

Public methods

static ImageAnalysis.ImageReaderMode valueOf(String name)
static final ImageReaderMode[] values()

Inherited methods

Enum values

ACQUIRE_LATEST_IMAGE

public static final ImageAnalysis.ImageReaderMode ACQUIRE_LATEST_IMAGE

Acquires the latest image in the queue, discarding any images older than the latest.

ACQUIRE_NEXT_IMAGE

public static final ImageAnalysis.ImageReaderMode ACQUIRE_NEXT_IMAGE

Acquires the next image in the queue.

Public methods

valueOf

public static ImageAnalysis.ImageReaderMode valueOf (String name)

Parameters
name String

Returns
ImageAnalysis.ImageReaderMode

values

public static final ImageReaderMode[] values ()

Returns
ImageReaderMode[]