CapturePhotoSettings

data class CapturePhotoSettings(val flashMode: FlashMode = FlashMode.OFF, val enableShutterSound: Boolean = true, val enableDepthData: Boolean = false, val enableRedEyeReduction: Boolean = true, val enableCameraCalibrationDataDelivery: Boolean = false, val enableDistortionCorrection: Boolean = false, val enableVirtualDeviceFusion: Boolean = true, val location: Location? = null)

Settings of a single CameraPhotoOutput.capturePhoto call.

Constructors

Link copied to clipboard
constructor(flashMode: FlashMode = FlashMode.OFF, enableShutterSound: Boolean = true, enableDepthData: Boolean = false, enableRedEyeReduction: Boolean = true, enableCameraCalibrationDataDelivery: Boolean = false, enableDistortionCorrection: Boolean = false, enableVirtualDeviceFusion: Boolean = true, location: Location? = null)

Properties

Link copied to clipboard

Whether to deliver camera calibration data with the photo, readable with Photo.calibrationData. Requires CameraPhotoOutput.supportsCameraCalibrationDataDelivery.

Link copied to clipboard

Whether to deliver depth data with the photo, readable with Photo.depth. Requires CameraPhotoOutput.supportsDepthDataDelivery.

Link copied to clipboard

Whether the pipeline corrects lens distortion. Captured photos may then have a narrower field of view than the preview.

Link copied to clipboard

Whether red-eye reduction is applied on flash captures.

Link copied to clipboard

Whether to play the system shutter sound when the photo is captured. The OS may override it, e.g. with regional sound-suppression settings.

Link copied to clipboard

Whether a device with several physical devices may fuse their images to improve quality. Disabled for RAW captures.

Link copied to clipboard
Link copied to clipboard

The Location to embed in the photo's EXIF metadata.