# 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)

*** ** * ** ***


```
interface ImageCaptureCapabilities
```

<br />

*** ** * ** ***

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

## Summary

| ### Public functions |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-set/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCaptureCapabilities#getSupportedOutputFormats()()` Gets the supported `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture.OutputFormat` set. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCaptureCapabilities#isCaptureProcessProgressSupported()()` Returns if the takePicture() call in `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture` is capable of notifying the `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture.OnImageSavedCallback#onCaptureProcessProgressed(int)` or `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture.OnImageCapturedCallback#onCaptureProcessProgressed(int)` callback to the apps. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCaptureCapabilities#isPostviewSupported()()` Returns if the takePicture() call in `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture` is capable of outputting postview images. |

## Public functions

### getSupportedOutputFormats

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

```
fun getSupportedOutputFormats(): (Mutable)Set<Int!>
```

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

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

| Returns |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-set/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>` | a set of supported output formats. |

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

### isCaptureProcessProgressSupported

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

```
fun isCaptureProcessProgressSupported(): Boolean
```

Returns if the takePicture() call in `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture` is capable of notifying the `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture.OnImageSavedCallback#onCaptureProcessProgressed(int)` or `https://developer.android.com/reference/kotlin/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)

```
fun isPostviewSupported(): Boolean
```

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