TargetConfig

@RequiresApi(21) interface TargetConfig<T : Any!> : ReadableConfig
androidx.camera.core.internal.TargetConfig

Configuration containing options used to identify the target class and object being configured.

Summary

Nested classes
abstract

Builder for a TargetConfig.

Public methods
open Class<T>?
getTargetClass(@Nullable valueIfMissing: Class<T>?)

Retrieves the class of the object being configured.

open Class<T>

Retrieves the class of the object being configured.

open String?
getTargetName(@Nullable valueIfMissing: String?)

Retrieves the name of the target object being configured.

open String

Retrieves the name of the target object being configured.

Inherited functions

Public methods

getTargetClass

@Nullable open fun getTargetClass(@Nullable valueIfMissing: Class<T>?): Class<T>?

Retrieves the class of the object being configured.

Parameters
valueIfMissing Class<T>?: The value to return if this configuration option has not been set.
Return
Class<T>? The stored value or valueIfMissing if the value does not exist in this configuration.

getTargetClass

@NonNull open fun getTargetClass(): Class<T>

Retrieves the class of the object being configured.

Return
Class<T> The stored value, if it exists in this configuration.
Exceptions
IllegalArgumentException if the option does not exist in this configuration.

getTargetName

@Nullable open fun getTargetName(@Nullable valueIfMissing: String?): String?

Retrieves 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
valueIfMissing String?: The value to return if this configuration option has not been set.
Return
String? The stored value or valueIfMissing if the value does not exist in this configuration.

getTargetName

@NonNull open fun getTargetName(): String

Retrieves 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.

Return
String The stored value, if it exists in this configuration.
Exceptions
IllegalArgumentException if the option does not exist in this configuration.