# CameraXConfig.Provider

Artifact: [androidx.camera:camera-core](https://developer.android.com/jetpack/androidx/releases/camera) [View Source](https://cs.android.com/search?q=file:androidx/camera/core/CameraXConfig.java+class:androidx.camera.core.CameraXConfig.Provider) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/camera#1.0.0)

*** ** * ** ***


```
public interface CameraXConfig.Provider
```

<br />

*** ** * ** ***

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

When implemented by an `https://developer.android.com/reference/android/app/Application.html`, this can provide on-demand initialization of CameraX.

`https://developer.android.com/reference/androidx/camera/lifecycle/ProcessCameraProvider#getInstance(android.content.Context)` of how this is used can be found in the `https://developer.android.com/reference/androidx/camera/lifecycle/package-summary` package.

## Summary

| ### Public methods |
|---|---|
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/camera/core/CameraXConfig` | `https://developer.android.com/reference/androidx/camera/core/CameraXConfig.Provider#getCameraXConfig()()` Returns the configuration to use for initializing an instance of CameraX. |

## Public methods

### getCameraXConfig

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/camera#1.0.0)

```
abstract @NonNull CameraXConfig getCameraXConfig()
```

Returns the configuration to use for initializing an instance of CameraX.