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

*** ** * ** ***


```
public final class ConcurrentCamera.SingleCameraConfig
```

<br />

*** ** * ** ***

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

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/camera/core/ConcurrentCamera.SingleCameraConfig#SingleCameraConfig(androidx.camera.core.CameraSelector,androidx.camera.core.UseCaseGroup,androidx.lifecycle.LifecycleOwner)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/CameraSelector cameraSelector, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/UseCaseGroup useCaseGroup, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/lifecycle/LifecycleOwner lifecycleOwner )` Constructor of a `https://developer.android.com/reference/androidx/camera/core/ConcurrentCamera.SingleCameraConfig` for concurrent cameras. |
| `https://developer.android.com/reference/androidx/camera/core/ConcurrentCamera.SingleCameraConfig#SingleCameraConfig(androidx.camera.core.CameraSelector,androidx.camera.core.UseCaseGroup,androidx.camera.core.CompositionSettings,androidx.lifecycle.LifecycleOwner)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/CameraSelector cameraSelector, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/UseCaseGroup useCaseGroup, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/CompositionSettings compositionSettings, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/lifecycle/LifecycleOwner lifecycleOwner )` Constructor of a `https://developer.android.com/reference/androidx/camera/core/ConcurrentCamera.SingleCameraConfig` for concurrent cameras. |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/CameraSelector` | `https://developer.android.com/reference/androidx/camera/core/ConcurrentCamera.SingleCameraConfig#getCameraSelector()()` Returns `https://developer.android.com/reference/androidx/camera/core/CameraSelector`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/CompositionSettings` | `https://developer.android.com/reference/androidx/camera/core/ConcurrentCamera.SingleCameraConfig#getCompositionSettings()()` Returns `https://developer.android.com/reference/androidx/camera/core/CompositionSettings`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/lifecycle/LifecycleOwner` | `https://developer.android.com/reference/androidx/camera/core/ConcurrentCamera.SingleCameraConfig#getLifecycleOwner()()` Returns `https://developer.android.com/reference/androidx/lifecycle/LifecycleOwner`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/UseCaseGroup` | `https://developer.android.com/reference/androidx/camera/core/ConcurrentCamera.SingleCameraConfig#getUseCaseGroup()()` Returns `https://developer.android.com/reference/androidx/camera/core/UseCaseGroup`. |

## Public constructors

### SingleCameraConfig

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

```
public SingleCameraConfig(
    @NonNull CameraSelector cameraSelector,
    @NonNull UseCaseGroup useCaseGroup,
    @NonNull LifecycleOwner lifecycleOwner
)
```

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

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/CameraSelector cameraSelector` | `https://developer.android.com/reference/androidx/camera/core/CameraSelector`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/UseCaseGroup useCaseGroup` | `https://developer.android.com/reference/androidx/camera/core/UseCaseGroup`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/lifecycle/LifecycleOwner lifecycleOwner` | `https://developer.android.com/reference/androidx/lifecycle/LifecycleOwner`. |

### SingleCameraConfig

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

```
public SingleCameraConfig(
    @NonNull CameraSelector cameraSelector,
    @NonNull UseCaseGroup useCaseGroup,
    @NonNull CompositionSettings compositionSettings,
    @NonNull LifecycleOwner lifecycleOwner
)
```

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

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/CameraSelector cameraSelector` | `https://developer.android.com/reference/androidx/camera/core/CameraSelector`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/UseCaseGroup useCaseGroup` | `https://developer.android.com/reference/androidx/camera/core/UseCaseGroup`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/CompositionSettings compositionSettings` | `https://developer.android.com/reference/androidx/camera/core/CompositionSettings`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/lifecycle/LifecycleOwner lifecycleOwner` | `https://developer.android.com/reference/androidx/lifecycle/LifecycleOwner`. |

## Public methods

### getCameraSelector

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

```
public @NonNull CameraSelector getCameraSelector()
```

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

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/CameraSelector` | `https://developer.android.com/reference/androidx/camera/core/CameraSelector` instance. |

### getCompositionSettings

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

```
public @NonNull CompositionSettings getCompositionSettings()
```

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

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/CompositionSettings` | `https://developer.android.com/reference/androidx/camera/core/CompositionSettings` instance. |

### getLifecycleOwner

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

```
public @NonNull LifecycleOwner getLifecycleOwner()
```

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

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/lifecycle/LifecycleOwner` | `https://developer.android.com/reference/androidx/lifecycle/LifecycleOwner` instance. |

### getUseCaseGroup

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

```
public @NonNull UseCaseGroup getUseCaseGroup()
```

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

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/UseCaseGroup` | `https://developer.android.com/reference/androidx/camera/core/UseCaseGroup` instance. |