# ConcurrentCamera.SingleCameraConfig

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

*** ** * ** ***


```
class ConcurrentCamera.SingleCameraConfig
```

<br />

*** ** * ** ***

Configuration for a single camera in concurrent camera mode, including `https://developer.android.com/reference/kotlin/androidx/camera/core/CameraSelector`, `https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner` and `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup`.

The configuration is used to bring up a lifecycle-aware camera with `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCase` bound. This class can used to bind concurrent cameras to `https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner`, each `https://developer.android.com/reference/kotlin/androidx/camera/core/ConcurrentCamera.SingleCameraConfig` represents a single camera.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/ConcurrentCamera.SingleCameraConfig#SingleCameraConfig(androidx.camera.core.CameraSelector,androidx.camera.core.UseCaseGroup,androidx.lifecycle.LifecycleOwner)( cameraSelector: https://developer.android.com/reference/kotlin/androidx/camera/core/CameraSelector, useCaseGroup: https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup, lifecycleOwner: https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner )` Constructor of a `https://developer.android.com/reference/kotlin/androidx/camera/core/ConcurrentCamera.SingleCameraConfig` for concurrent cameras. |
| `https://developer.android.com/reference/kotlin/androidx/camera/core/ConcurrentCamera.SingleCameraConfig#SingleCameraConfig(androidx.camera.core.CameraSelector,androidx.camera.core.UseCaseGroup,androidx.camera.core.CompositionSettings,androidx.lifecycle.LifecycleOwner)( cameraSelector: https://developer.android.com/reference/kotlin/androidx/camera/core/CameraSelector, useCaseGroup: https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup, compositionSettings: https://developer.android.com/reference/kotlin/androidx/camera/core/CompositionSettings, lifecycleOwner: https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner )` Constructor of a `https://developer.android.com/reference/kotlin/androidx/camera/core/ConcurrentCamera.SingleCameraConfig` for concurrent cameras. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/CameraSelector` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ConcurrentCamera.SingleCameraConfig#getCameraSelector()()` Returns `https://developer.android.com/reference/kotlin/androidx/camera/core/CameraSelector`. |
| `https://developer.android.com/reference/kotlin/androidx/camera/core/CompositionSettings` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ConcurrentCamera.SingleCameraConfig#getCompositionSettings()()` Returns `https://developer.android.com/reference/kotlin/androidx/camera/core/CompositionSettings`. |
| `https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ConcurrentCamera.SingleCameraConfig#getLifecycleOwner()()` Returns `https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner`. |
| `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ConcurrentCamera.SingleCameraConfig#getUseCaseGroup()()` Returns `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup`. |

## Public constructors

### SingleCameraConfig

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

```
SingleCameraConfig(
    cameraSelector: CameraSelector,
    useCaseGroup: UseCaseGroup,
    lifecycleOwner: LifecycleOwner
)
```

Constructor of a `https://developer.android.com/reference/kotlin/androidx/camera/core/ConcurrentCamera.SingleCameraConfig` for concurrent cameras.

| Parameters |
|---|---|
| `cameraSelector: https://developer.android.com/reference/kotlin/androidx/camera/core/CameraSelector` | `https://developer.android.com/reference/kotlin/androidx/camera/core/CameraSelector`. |
| `useCaseGroup: https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup` | `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup`. |
| `lifecycleOwner: https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner` | `https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner`. |

### SingleCameraConfig

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

```
SingleCameraConfig(
    cameraSelector: CameraSelector,
    useCaseGroup: UseCaseGroup,
    compositionSettings: CompositionSettings,
    lifecycleOwner: LifecycleOwner
)
```

Constructor of a `https://developer.android.com/reference/kotlin/androidx/camera/core/ConcurrentCamera.SingleCameraConfig` for concurrent cameras.

| Parameters |
|---|---|
| `cameraSelector: https://developer.android.com/reference/kotlin/androidx/camera/core/CameraSelector` | `https://developer.android.com/reference/kotlin/androidx/camera/core/CameraSelector`. |
| `useCaseGroup: https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup` | `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup`. |
| `compositionSettings: https://developer.android.com/reference/kotlin/androidx/camera/core/CompositionSettings` | `https://developer.android.com/reference/kotlin/androidx/camera/core/CompositionSettings`. |
| `lifecycleOwner: https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner` | `https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner`. |

## Public functions

### getCameraSelector

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

```
fun getCameraSelector(): CameraSelector
```

Returns `https://developer.android.com/reference/kotlin/androidx/camera/core/CameraSelector`.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/CameraSelector` | `https://developer.android.com/reference/kotlin/androidx/camera/core/CameraSelector` instance. |

### getCompositionSettings

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

```
fun getCompositionSettings(): CompositionSettings
```

Returns `https://developer.android.com/reference/kotlin/androidx/camera/core/CompositionSettings`.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/CompositionSettings` | `https://developer.android.com/reference/kotlin/androidx/camera/core/CompositionSettings` instance. |

### getLifecycleOwner

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

```
fun getLifecycleOwner(): LifecycleOwner
```

Returns `https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner`.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner` | `https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner` instance. |

### getUseCaseGroup

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

```
fun getUseCaseGroup(): UseCaseGroup
```

Returns `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup`.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup` | `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup` instance. |