Compose Camera LogoCompose Camera

CameraControl

Runtime camera adjustments.

CameraControl

The CameraControl interface allows modifying camera parameters while the camera is active.

Capabilities

Zoom

Control the zoom ratio.

fun setZoomRatio(ratio: Float)
fun setLinearZoom(linearZoom: Float) // 0.0 to 1.0

Focus

Focus on a specific point.

fun startFocusAndMetering(point: FocusPoint)

Exposure

Adjust exposure compensation.

fun setExposureCompensation(index: Int)

Torch

Enable or disable the torch (flashlight).

fun enableTorch(enabled: Boolean)

On this page