public interface

CameraDeviceConfig.Builder<B>

 androidx.camera.core.CameraDeviceConfig.Builder<B>

Subclasses:

ImageAnalysisConfig.Builder, PreviewConfig.Builder, VideoCaptureConfig.Builder, ImageCaptureConfig.Builder

Overview

Builder for a CameraDeviceConfig.

Summary

Methods
public java.lang.ObjectsetCameraIdFilter(CameraIdFilter cameraIdFilter)

Sets the CameraIdFilter that filter out the unavailable camera ids.

public java.lang.ObjectsetLensFacing(androidx.camera.core.CameraX.LensFacing lensFacing)

Sets the primary camera to be configured based on the direction the lens is facing.

Methods

public java.lang.Object setLensFacing(androidx.camera.core.CameraX.LensFacing lensFacing)

Sets the primary camera to be configured based on the direction the lens is facing.

If multiple cameras exist with equivalent lens facing direction, the first ("primary") camera for that direction will be chosen.

Parameters:

lensFacing: The direction of the camera's lens.

Returns:

the current Builder.

public java.lang.Object setCameraIdFilter(CameraIdFilter cameraIdFilter)

Sets the CameraIdFilter that filter out the unavailable camera ids.

Parameters:

cameraIdFilter: The CameraIdFilter.

Returns:

the current Builder.