CameraXConfig

public final class CameraXConfig
extends Object

java.lang.Object
   ↳ androidx.camera.core.CameraXConfig


A configuration for adding implementation and user-specific behavior to CameraX.

CameraXConfig provides customizable options for camera provider instances that persist for the lifetime of the provider.

An implementation of AppConfig must be provided by subclassing the Application object and implementing CameraXConfig.Provider. An example of how this is used can be found in the androidx.camera.lifecycle package.

Applications can create and use the implementation of AppConfig provided in androidx.camera.camera2.

Summary

Nested classes

class CameraXConfig.Builder

A builder for generating CameraXConfig objects. 

interface CameraXConfig.Provider

An interface which can be implemented to provide the configuration for CameraX. 

Fields

public static final Option<Class<?>> OPTION_TARGET_CLASS

Option: camerax.core.target.class

public static final Option<String> OPTION_TARGET_NAME

Option: camerax.core.target.name

Inherited methods

Fields

OPTION_TARGET_CLASS

public static final Option<Class<?>> OPTION_TARGET_CLASS

Option: camerax.core.target.class

OPTION_TARGET_NAME

public static final Option<String> OPTION_TARGET_NAME

Option: camerax.core.target.name