Compose Camera LogoCompose Camera

CameraConfiguration

Defining camera settings.

CameraConfiguration

The CameraConfiguration data class holds the target state of the camera.

Properties

PropertyTypeDescriptionDefault
lensCameraLensThe active camera lens (FRONT or BACK).BACK
flashModeFlashModeThe flash mode (ON, OFF, AUTO).OFF
captureModeCaptureModeThe operational mode (IMAGE, VIDEO).IMAGE

Enums

CameraLens

  • FRONT: Front-facing camera.
  • BACK: Back-facing camera.

FlashMode

  • ON: Flash/Torch always on (if supported).
  • OFF: Flash disabled.
  • AUTO: Flash fires automatically based on lighting.

CaptureMode

  • IMAGE: Still photo capture mode.
  • VIDEO: Video recording mode.

On this page