# VideoCaptureScope

Artifact: [androidx.camera:camera-video](https://developer.android.com/jetpack/androidx/releases/camera) [View Source](https://cs.android.com/search?q=file:androidx/camera/video/VideoCaptureDsl.kt+class:androidx.camera.video.VideoCaptureScope) Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

*** ** * ** ***


```
@CameraXDsl
public final class VideoCaptureScope<T extends VideoOutput> implements InteropConfigurableScope<@NonNull VideoCapture.Builder<@NonNull T>>
```

<br />

*** ** * ** ***

Scope class for `https://developer.android.com/reference/androidx/camera/video/VideoCapture` configuration DSL.

## Summary

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/camera/core/DynamicRange` | `https://developer.android.com/reference/androidx/camera/video/VideoCaptureScope#getDynamicRange()()` Sets or gets the dynamic range for this use case. |
| `final int` | `https://developer.android.com/reference/androidx/camera/video/VideoCaptureScope#getMirrorMode()()` Sets or gets the mirror mode for this use case. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/util/Range.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Integer.html>` | `https://developer.android.com/reference/androidx/camera/video/VideoCaptureScope#getTargetFrameRate()()` Sets or gets the target frame rate range for this use case. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/camera/video/VideoCaptureScope#getTargetName()()` Sets or gets the target name for this use case configuration. |
| `final int` | `https://developer.android.com/reference/androidx/camera/video/VideoCaptureScope#getTargetRotation()()` Sets or gets the target rotation for this use case. |
| `final boolean` | `https://developer.android.com/reference/androidx/camera/video/VideoCaptureScope#isVideoStabilizationEnabled()()` Sets or gets whether video stabilization is enabled for this use case. |
| `final void` | `https://developer.android.com/reference/androidx/camera/video/VideoCaptureScope#setDynamicRange(androidx.camera.core.DynamicRange)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/camera/core/DynamicRange value)` Sets or gets the dynamic range for this use case. |
| `final void` | `https://developer.android.com/reference/androidx/camera/video/VideoCaptureScope#setMirrorMode(kotlin.Int)(int value)` Sets or gets the mirror mode for this use case. |
| `final void` | `https://developer.android.com/reference/androidx/camera/video/VideoCaptureScope#setTargetFrameRate(android.util.Range)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/util/Range.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Integer.html> value)` Sets or gets the target frame rate range for this use case. |
| `final void` | `https://developer.android.com/reference/androidx/camera/video/VideoCaptureScope#setTargetName(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value)` Sets or gets the target name for this use case configuration. |
| `final void` | `https://developer.android.com/reference/androidx/camera/video/VideoCaptureScope#setTargetRotation(kotlin.Int)(int value)` Sets or gets the target rotation for this use case. |
| `final void` | `https://developer.android.com/reference/androidx/camera/video/VideoCaptureScope#setVideoStabilizationEnabled(kotlin.Boolean)(boolean value)` Sets or gets whether video stabilization is enabled for this use case. |

## Public methods

### getDynamicRange

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

```
public final @NonNull DynamicRange getDynamicRange()
```

Sets or gets the dynamic range for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/camera/video/VideoCapture.Builder#setDynamicRange(androidx.camera.core.DynamicRange)` |   |

### getMirrorMode

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

```
public final int getMirrorMode()
```

Sets or gets the mirror mode for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/camera/video/VideoCapture.Builder#setMirrorMode(int)` |   |

### getTargetFrameRate

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

```
public final @NonNull Range<@NonNull Integer> getTargetFrameRate()
```

Sets or gets the target frame rate range for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/camera/video/VideoCapture.Builder#setTargetFrameRate(android.util.Range<java.lang.Integer>)` |   |

### getTargetName

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

```
public final @NonNull String getTargetName()
```

Sets or gets the target name for this use case configuration.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/camera/video/VideoCapture.Builder#setTargetName(java.lang.String)` |   |

### getTargetRotation

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

```
public final int getTargetRotation()
```

Sets or gets the target rotation for this use case.

Value is one of the following:

- `Surface.ROTATION_0`
- `Surface.ROTATION_90`
- `Surface.ROTATION_180`
- `Surface.ROTATION_270`

<br />

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/camera/video/VideoCapture.Builder#setTargetRotation(int)` |   |

### isVideoStabilizationEnabled

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

```
public final boolean isVideoStabilizationEnabled()
```

Sets or gets whether video stabilization is enabled for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/camera/video/VideoCapture.Builder#setVideoStabilizationEnabled(boolean)` |   |

### setDynamicRange

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

```
public final void setDynamicRange(@NonNull DynamicRange value)
```

Sets or gets the dynamic range for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/camera/video/VideoCapture.Builder#setDynamicRange(androidx.camera.core.DynamicRange)` |   |

### setMirrorMode

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

```
public final void setMirrorMode(int value)
```

Sets or gets the mirror mode for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/camera/video/VideoCapture.Builder#setMirrorMode(int)` |   |

### setTargetFrameRate

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

```
public final void setTargetFrameRate(@NonNull Range<@NonNull Integer> value)
```

Sets or gets the target frame rate range for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/camera/video/VideoCapture.Builder#setTargetFrameRate(android.util.Range<java.lang.Integer>)` |   |

### setTargetName

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

```
public final void setTargetName(@NonNull String value)
```

Sets or gets the target name for this use case configuration.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/camera/video/VideoCapture.Builder#setTargetName(java.lang.String)` |   |

### setTargetRotation

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

```
public final void setTargetRotation(int value)
```

Sets or gets the target rotation for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/camera/video/VideoCapture.Builder#setTargetRotation(int)` |   |

### setVideoStabilizationEnabled

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

```
public final void setVideoStabilizationEnabled(boolean value)
```

Sets or gets whether video stabilization is enabled for this use case.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/camera/video/VideoCapture.Builder#setVideoStabilizationEnabled(boolean)` |   |