ImageCaptureCapabilities


interface ImageCaptureCapabilities


ImageCaptureCapabilities is used to query ImageCapture use case capabilities on the device.

Summary

Public functions

(Mutable)Set<Int!>

Gets the supported ImageCapture.OutputFormat set.

Boolean

Returns if the takePicture() call in ImageCapture is capable of notifying the onCaptureProcessProgressed or onCaptureProcessProgressed callback to the apps.

Boolean

Returns if the takePicture() call in ImageCapture is capable of outputting postview images.

Public functions

getSupportedOutputFormats

Added in 1.4.0
@ExperimentalImageCaptureOutputFormat
fun getSupportedOutputFormats(): (Mutable)Set<Int!>

Gets the supported ImageCapture.OutputFormat set.

The set returned will always contain OUTPUT_FORMAT_JPEG format, support for other formats will vary by camera.

Returns
(Mutable)Set<Int!>

a set of supported output formats.

See also
setOutputFormat

isCaptureProcessProgressSupported

Added in 1.4.0
fun isCaptureProcessProgressSupported(): Boolean

Returns if the takePicture() call in ImageCapture is capable of notifying the onCaptureProcessProgressed or onCaptureProcessProgressed callback to the apps.

isPostviewSupported

Added in 1.4.0
fun isPostviewSupported(): Boolean

Returns if the takePicture() call in ImageCapture is capable of outputting postview images.

A postview image is a low-quality image that's produced earlier during image capture than the final high-quality image, and can be used as a thumbnail or placeholder until the final image is ready. If supported, apps can enable the postview using setPostviewEnabled.