public interface

TargetConfig.Builder<T, B>

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

Subclasses:

ImageAnalysisConfig.Builder, PreviewConfig.Builder, VideoCaptureConfig.Builder, AppConfig.Builder, ImageCaptureConfig.Builder, UseCaseConfig.Builder<T, C, B>

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.