CameraSourceConfig

  • CameraSourceConfig is a class for configuring camera source settings in an Android application.

  • It allows developers to specify the camera facing direction (front or back) using constants like CAMERA_FACING_FRONT and CAMERA_FACING_BACK.

  • A Builder class is provided to facilitate the creation and configuration of CameraSourceConfig instances.

  • The CameraFacing annotation is used to indicate the direction of the camera relative to the device screen.

public class CameraSourceConfig extends Object

Config class to hold different camera source settings.

Nested Class Summary

class CameraSourceConfig.Builder Builder for CameraSourceConfig. 
@interface CameraSourceConfig.CameraFacing Direction of the camera facing relative to device screen. 

Constant Summary

int CAMERA_FACING_BACK
int CAMERA_FACING_FRONT

Inherited Method Summary

Constants

public static final int CAMERA_FACING_BACK

Constant Value: 1

public static final int CAMERA_FACING_FRONT

Constant Value: 0