# UseCaseGroup

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

*** ** * ** ***


```
class UseCaseGroup
```

<br />

*** ** * ** ***

Represents a collection of `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCase`.

When the `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup` is bound to `https://developer.android.com/reference/kotlin/androidx/lifecycle/Lifecycle`, it binds all the `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCase`s to the same `https://developer.android.com/reference/kotlin/androidx/lifecycle/Lifecycle`. `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCase`s inside of a `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup` usually share some common properties like the FOV defined by `https://developer.android.com/reference/kotlin/androidx/camera/core/ViewPort`.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup.Builder` A builder for generating `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup`. |

| ### Public functions |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/camera/core/CameraEffect!>` | `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup#getEffects()()` Gets the `https://developer.android.com/reference/kotlin/androidx/camera/core/CameraEffect`s. |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/camera/core/UseCase!>` | `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup#getUseCases()()` Gets the `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCase`s. |
| `https://developer.android.com/reference/kotlin/androidx/camera/core/ViewPort?` | `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCaseGroup#getViewPort()()` Gets the `https://developer.android.com/reference/kotlin/androidx/camera/core/ViewPort` shared by the `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCase` collection. |

## Public functions

### getEffects

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

```
fun getEffects(): (Mutable)List<CameraEffect!>
```

Gets the `https://developer.android.com/reference/kotlin/androidx/camera/core/CameraEffect`s.

### getUseCases

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

```
fun getUseCases(): (Mutable)List<UseCase!>
```

Gets the `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCase`s.

### getViewPort

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

```
fun getViewPort(): ViewPort?
```

Gets the `https://developer.android.com/reference/kotlin/androidx/camera/core/ViewPort` shared by the `https://developer.android.com/reference/kotlin/androidx/camera/core/UseCase` collection.