# UseCaseCamera2Interop

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

*** ** * ** ***


```
@CameraXDsl
abstract class UseCaseCamera2Interop : OutputConfigurationInterop
```

<br />

*** ** * ** ***

Configures Camera2 options on a `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCase`.

Provides setters for output stream configuration options, such as physical camera ID, stream use case, mirror mode, timestamp base, dynamic range profile, and surface group ID.

## Summary

### Inherited functions

From [androidx.camera.camera2.interop.OutputConfigurationInterop](https://developer.android.com/reference/kotlin/androidx/camera/camera2/interop/OutputConfigurationInterop) `abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 31)
https://developer.android.com/reference/kotlin/androidx/camera/camera2/interop/OutputConfigurationInterop#addSensorPixelModeUsed(kotlin.Int)(sensorPixelMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

Adds a sensor pixel mode that this output configuration will be used in.

### Inherited properties

From [androidx.camera.camera2.interop.OutputConfigurationInterop](https://developer.android.com/reference/kotlin/androidx/camera/camera2/interop/OutputConfigurationInterop) `abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/androidx/camera/camera2/interop/OutputConfigurationInterop#dynamicRangeProfile()`

The dynamic range profile.
`abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/camera/camera2/interop/OutputConfigurationInterop#mirrorMode()`

The mirror mode.
`abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` `https://developer.android.com/reference/kotlin/androidx/camera/camera2/interop/OutputConfigurationInterop#physicalCameraId()`

The physical camera ID.
`abstract 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/camera2/interop/OutputConfigurationInterop#sensorPixelModesUsed()`

The sensor pixel modes that this output configuration will be used in.
`abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/androidx/camera/camera2/interop/OutputConfigurationInterop#streamUseCase()`

The stream use case.
`abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/camera/camera2/interop/OutputConfigurationInterop#surfaceGroupId()`

The surface group ID.
`abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/camera/camera2/interop/OutputConfigurationInterop#timestampBase()`

The timestamp base.