What problem does it solve?
It removes the brittleness of legacy Camera1 and raw Camera2 code by guiding you through a reliable migration to CameraX for consistent orientation, lifecycle handling, and camera use-case wiring.
Core Features & Use Cases
- Dependency setup for CameraX: Configure CameraX Core, Camera2 interop, lifecycle binding, and the appropriate preview/capture UI layer (View or Compose).
- Lifecycle-aware camera binding: Replace manual open/close and custom lifecycle code with
ProcessCameraProvider.bindToLifecycle so the camera follows your LifecycleOwner safely.
- Preview, tap-to-focus, and capture modernization: Implement
PreviewView (Views) or CameraXViewfinder (Compose), use FocusMeteringAction for tap-to-focus, and capture photos with ImageCapture while ensuring ImageProxy is closed.
Quick Start
Ask an AI assistant to migrate your existing Camera1 or Camera2 implementation in this project to CameraX by updating dependencies, replacing manual lifecycle camera code with ProcessCameraProvider, wiring Preview and tap-to-focus for your UI toolkit, and refactoring photo capture to use ImageCapture with proper ImageProxy closing.