Google is committed to advancing racial equity for Black communities. See how.

UseCaseGroup.Builder

public static final class UseCaseGroup.Builder
extends Object

java.lang.Object
   ↳ androidx.camera.core.UseCaseGroup.Builder


A builder for generating UseCaseGroup.

Summary

Public constructors

Builder()

Public methods

UseCaseGroup.Builder addUseCase(UseCase useCase)

Adds UseCase to the collection.

UseCaseGroup build()

Builds a UseCaseGroup from the current state.

UseCaseGroup.Builder setViewPort(ViewPort viewPort)

Sets ViewPort shared by the UseCases.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

addUseCase

public UseCaseGroup.Builder addUseCase (UseCase useCase)

Adds UseCase to the collection.

Parameters
useCase UseCase

Returns
UseCaseGroup.Builder

build

public UseCaseGroup build ()

Builds a UseCaseGroup from the current state.

Returns
UseCaseGroup

setViewPort

public UseCaseGroup.Builder setViewPort (ViewPort viewPort)

Sets ViewPort shared by the UseCases.

Parameters
viewPort ViewPort

Returns
UseCaseGroup.Builder