ImageCaptureCapabilities


public interface ImageCaptureCapabilities


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

Summary

Public methods

abstract @NonNull Set<Integer>

Gets the supported ImageCapture.OutputFormat set.

abstract boolean

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

abstract boolean

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

Public methods

getSupportedOutputFormats

Added in 1.4.0
abstract @NonNull Set<IntegergetSupportedOutputFormats()

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
@NonNull Set<Integer>

a set of supported output formats.

See also
setOutputFormat

isCaptureProcessProgressSupported

Added in 1.4.0
abstract boolean isCaptureProcessProgressSupported()

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
abstract boolean isPostviewSupported()

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.