CaptureMode

class CaptureMode
androidx.camera.core.ImageCapture.CaptureMode

Capture mode options for ImageCapture. A picture will always be taken regardless of mode, and the mode will be used on devices that support it.

Summary

Constants

static Int

Optimizes capture pipeline to prioritize image quality over latency.

static Int

Optimizes capture pipeline to prioritize latency over image quality.

Public constructors

Capture mode options for ImageCapture.

Constants

MAXIMIZE_QUALITY

static val MAXIMIZE_QUALITY: Int

Optimizes capture pipeline to prioritize image quality over latency. When the capture mode is set to MAX_QUALITY, images may take longer to capture.

Value: 0

MINIMIZE_LATENCY

static val MINIMIZE_LATENCY: Int

Optimizes capture pipeline to prioritize latency over image quality. When the capture mode is set to MIN_LATENCY, images may capture faster but the image quality may be reduced.

Value: 1

Public constructors

<init>

CaptureMode()

Capture mode options for ImageCapture. A picture will always be taken regardless of mode, and the mode will be used on devices that support it.