CameraSettings

Use to change camera settings. This object is returned by ICameraSource.settings.

Parameters

characteristics

Camera characteristics of the current camera.

Types

Link copied to clipboard
class ColorCorrection(characteristics: CameraCharacteristics, cameraSettings: CameraSettings)
Link copied to clipboard
object Companion
Link copied to clipboard
class Exposure(characteristics: CameraCharacteristics, cameraSettings: CameraSettings)
Link copied to clipboard
class Flash(characteristics: CameraCharacteristics, cameraSettings: CameraSettings)
Link copied to clipboard
class Focus(characteristics: CameraCharacteristics, cameraSettings: CameraSettings)
Link copied to clipboard
class FocusMetering(coroutineScope: CoroutineScope, characteristics: CameraCharacteristics, cameraSettings: CameraSettings, zoom: CameraSettings.Zoom, focus: CameraSettings.Focus, exposure: CameraSettings.Exposure, whiteBalance: CameraSettings.WhiteBalance)
Link copied to clipboard
class Iso(characteristics: CameraCharacteristics, cameraSettings: CameraSettings)
Link copied to clipboard
class Stabilization(characteristics: CameraCharacteristics, cameraSettings: CameraSettings)
Link copied to clipboard
class WhiteBalance(characteristics: CameraCharacteristics, cameraSettings: CameraSettings)
Link copied to clipboard
sealed class Zoom(val characteristics: CameraCharacteristics, val cameraSettings: CameraSettings)

Properties

Link copied to clipboard

Current camera id.

Link copied to clipboard
Link copied to clipboard

Current camera color correction API.

Link copied to clipboard
val coroutineScope: CoroutineScope
Link copied to clipboard

Current camera exposure API.

Link copied to clipboard

Current camera flash API.

Link copied to clipboard

Current focus API.

Link copied to clipboard

Current focus metering API.

Link copied to clipboard
val isActiveFlow: StateFlow<Boolean>

Whether the camera is available. To be used before calling any camera settings.

Link copied to clipboard

Current camera ISO API.

Link copied to clipboard

Current stabilization API.

Link copied to clipboard

Current camera white balance API.

Link copied to clipboard

Current camera zoom API.

Functions

Link copied to clipboard
suspend fun applyRepeatingSession()

Applies settings to the camera repeatedly.

Link copied to clipboard

Applies settings to the camera repeatedly in a synchronized way.

Link copied to clipboard
fun <T> get(key: CaptureRequest.Key<T?>): T?

Directly gets a CaptureRequest from the camera.

Link copied to clipboard
fun <T> set(key: CaptureRequest.Key<T>, value: T)

Sets a CaptureRequest key to the camera.