public static final class ImageCapture.Builder
extends Object implements ExtendableBuilder<T extends UseCase>


Builder for an ImageCapture.


Public constructors


Creates a new Builder object.

Public methods

ImageCapture build()

Builds an immutable ImageCapture from the current state.

ImageCapture.Builder setCaptureMode(int captureMode)

Sets the image capture mode.

ImageCapture.Builder setFlashMode(int flashMode)

Sets the flashMode.

ImageCapture.Builder setIoExecutor(Executor executor)

Sets the default executor that will be used for IO tasks.

ImageCapture.Builder setJpegQuality(int jpegQuality)

Sets the output JPEG image compression quality.

ImageCapture.Builder setTargetAspectRatio(int aspectRatio)

Sets the aspect ratio of the intended target for images from this configuration.

ImageCapture.Builder setTargetName(String targetName)

Sets the name of the target object being configured, used only for debug logging.

ImageCapture.Builder setTargetResolution(Size resolution)

Sets the intended output target resolution.

ImageCapture.Builder setTargetRotation(int rotation)

Sets the rotation of the intended target for images from this configuration.

Inherited methods