Stay organized with collections Save and categorize content based on your preferences.

UseCase

@RequiresApi(value = 21)
public abstract class UseCase

Known direct subclasses
ImageAnalysis

A use case providing CPU accessible images for an app to perform image analysis on.

ImageCapture

A use case for taking a picture.

Preview

A use case that provides a camera preview stream for displaying on-screen.

VideoCapture

A use case that provides camera stream suitable for video application.


The use case which all other use cases are built on top of.

A UseCase provides functionality to map the set of arguments in a use case to arguments that are usable by a camera. UseCase also will communicate of the active/inactive state to the Camera.

Summary

Public constructors

Public constructors

UseCase

public UseCase()