# ImageCaptureCapabilities

Artifact: [androidx.camera:camera-core](https://developer.android.com/jetpack/androidx/releases/camera) [View Source](https://cs.android.com/search?q=file:androidx/camera/core/ImageCaptureCapabilities.java+class:androidx.camera.core.ImageCaptureCapabilities) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/camera#1.4.0)

*** ** * ** ***


```
public interface ImageCaptureCapabilities
```

<br />

*** ** * ** ***

ImageCaptureCapabilities is used to query `https://developer.android.com/reference/androidx/camera/core/ImageCapture` use case capabilities on the device.

## Summary

| ### Public methods |
|---|---|
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/Set.html<https://developer.android.com/reference/java/lang/Integer.html>` | `https://developer.android.com/reference/androidx/camera/core/ImageCaptureCapabilities#getSupportedOutputFormats()()` Gets the supported `https://developer.android.com/reference/androidx/camera/core/ImageCapture.OutputFormat` set. |
| `abstract boolean` | `https://developer.android.com/reference/androidx/camera/core/ImageCaptureCapabilities#isCaptureProcessProgressSupported()()` Returns if the takePicture() call in `https://developer.android.com/reference/androidx/camera/core/ImageCapture` is capable of notifying the `https://developer.android.com/reference/androidx/camera/core/ImageCapture.OnImageSavedCallback#onCaptureProcessProgressed(int)` or `https://developer.android.com/reference/androidx/camera/core/ImageCapture.OnImageCapturedCallback#onCaptureProcessProgressed(int)` callback to the apps. |
| `abstract boolean` | `https://developer.android.com/reference/androidx/camera/core/ImageCaptureCapabilities#isPostviewSupported()()` Returns if the takePicture() call in `https://developer.android.com/reference/androidx/camera/core/ImageCapture` is capable of outputting postview images. |

## Public methods

### getSupportedOutputFormats

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/camera#1.4.0)

```
abstract @NonNull Set<Integer> getSupportedOutputFormats()
```

Gets the supported `https://developer.android.com/reference/androidx/camera/core/ImageCapture.OutputFormat` set.

The set returned will always contain `https://developer.android.com/reference/androidx/camera/core/ImageCapture#OUTPUT_FORMAT_JPEG()` format, support for other formats will vary by camera.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/Set.html<https://developer.android.com/reference/java/lang/Integer.html>` | a set of supported output formats. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/camera/core/ImageCapture.Builder#setOutputFormat(int)` |   |

### isCaptureProcessProgressSupported

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/camera#1.4.0)

```
abstract boolean isCaptureProcessProgressSupported()
```

Returns if the takePicture() call in `https://developer.android.com/reference/androidx/camera/core/ImageCapture` is capable of notifying the `https://developer.android.com/reference/androidx/camera/core/ImageCapture.OnImageSavedCallback#onCaptureProcessProgressed(int)` or `https://developer.android.com/reference/androidx/camera/core/ImageCapture.OnImageCapturedCallback#onCaptureProcessProgressed(int)` callback to the apps.

### isPostviewSupported

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/camera#1.4.0)

```
abstract boolean isPostviewSupported()
```

Returns if the takePicture() call in `https://developer.android.com/reference/androidx/camera/core/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 `https://developer.android.com/reference/androidx/camera/core/ImageCapture.Builder#setPostviewEnabled(boolean)`.