public interface

TargetConfig.Builder<T, B>

 androidx.camera.core.internal.TargetConfig.Builder<T, B>

Subclasses:

ImageAnalysis.Builder, VideoCapture.Builder, Preview.Builder, ImageCapture.Builder, CameraXConfig.Builder, UseCaseConfig.Builder<T, C, B>, VideoCapture.Builder<T>

Overview

Builder for a TargetConfig.

A TargetConfig contains options used to identify the target class and object being configured.

Summary

Methods
public java.lang.ObjectsetTargetClass(java.lang.Class<java.lang.Object> targetClass)

Sets the class of the object being configured.

public java.lang.ObjectsetTargetName(java.lang.String targetName)

Sets the name of the target object being configured.

Methods

public java.lang.Object setTargetClass(java.lang.Class<java.lang.Object> targetClass)

Sets the class of the object being configured.

Setting the target class will automatically generate a unique target name if one does not already exist in this configuration.

Parameters:

targetClass: A class object corresponding to the class of the object being configured.

Returns:

the current Builder.

public java.lang.Object setTargetName(java.lang.String targetName)

Sets the name of the target object being configured.

The name should be a value that can uniquely identify an instance of the object being configured.

Parameters:

targetName: A unique string identifier for the instance of the class being configured.

Returns:

the current Builder.