# PreviewCapabilities

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/PreviewCapabilities.java+class:androidx.camera.core.PreviewCapabilities) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/camera#1.4.0)

*** ** * ** ***


```
interface PreviewCapabilities
```

<br />

*** ** * ** ***

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

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/PreviewCapabilities#isStabilizationSupported()()` Returns if preview stabilization is supported on the device. |

## Public functions

### isStabilizationSupported

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

```
fun isStabilizationSupported(): Boolean
```

Returns if preview stabilization is supported on the device. Preview stabilization can be turned on via `https://developer.android.com/reference/kotlin/androidx/camera/core/Preview.Builder#setPreviewStabilizationEnabled(boolean)`.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if `https://developer.android.com/reference/android/hardware/camera2/CameraMetadata.html#CONTROL_VIDEO_STABILIZATION_MODE_PREVIEW_STABILIZATION` is supported, otherwise false. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/Preview.Builder#setPreviewStabilizationEnabled(boolean)` |   |
| `https://developer.android.com/reference/android/hardware/camera2/CaptureRequest.html#CONTROL_VIDEO_STABILIZATION_MODE` |   |