UseCaseGroup

@RequiresApi(value = 21)
public final class UseCaseGroup


Represents a collection of UseCase. When the UseCaseGroup is bound to Lifecycle, it binds all the UseCases to the same Lifecycle. UseCases inside of a UseCaseGroup usually share some common properties like the FOV defined by ViewPort.

Summary

Nested types

public final class UseCaseGroup.Builder

A builder for generating UseCaseGroup.

Public methods

@NonNull List<CameraEffect>

Gets the CameraEffects.

@NonNull List<UseCase>

Gets the UseCases.

@Nullable ViewPort

Gets the ViewPort shared by the UseCase collection.

Public methods

getEffects

Added in 1.3.0
public @NonNull List<CameraEffectgetEffects()

Gets the CameraEffects.

getUseCases

Added in 1.0.0
public @NonNull List<UseCasegetUseCases()

Gets the UseCases.

getViewPort

Added in 1.0.0
public @Nullable ViewPort getViewPort()

Gets the ViewPort shared by the UseCase collection.