Google is committed to advancing racial equity for Black communities. See how.


public final class CameraXConfig
extends Object


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 CameraXConfig can be provided by subclassing the Application object and implementing CameraXConfig.Provider. Alternatively, other methods configuration exist such as ProcessCameraProvider.configureInstance(CameraXConfig). Examples of how this is used can be found in the package.

Applications can create and use the implementation of CameraXConfig provided in


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. 

Inherited methods