Camera 6 min read

CameraX 1.7.0 Stable: Camera2Interop V2 Without Opt-In, Kotlin DSL Builders and What Else Shipped

CameraX 1.7.0 went stable on November 18, 2026, after alpha01 in March, rc01 in October and rc02 on Nov 4. Earlier posts here covered the viewfinder gestures and GPU ImageAnalysis and the release-candidate fixes. This one covers what the stable notes make official, with the focus on the change most likely to touch existing code: Camera2Interop V2.

1.7.0
stable, Nov 18, 2026
No opt-in
Camera2Interop V2 APIs
Java 11
target since 1.7.0-alpha01

1. Camera2Interop V2 is stable

The new interop surface no longer needs @ExperimentalCamera2Interop. Instead of the old Camera2Interop.Extender wrapped around a builder, you create an interop object with a factory and attach it with setInterop(). The release notes list factories Camera2Interop.forUseCase(), forImageCapture(), forSessionConfig() and forCameraControl(), and setInterop() on the Preview, ImageCapture, ImageAnalysis, VideoCapture and SessionConfig builders. Runtime control goes through CameraControl.applyInteropAsync().

The granular scopes (UseCaseCamera2Interop, ImageCaptureCamera2Interop, SessionConfigCamera2Interop, CameraControlCamera2Interop) expose settings such as streamUseCase, mirrorMode, dynamicRangeProfile, physicalCameraId, sensorPixelModesUsed, surfaceGroupId and timestampBase on the output configuration, plus sessionType, colorSpace, sessionParameter and sessionStateCallback on the session.

Small helpers replace a lot of boilerplate: Camera2Interop.getCameraId(CameraInfo), getCameraCharacteristics(CameraInfo), and the Kotlin extensions CameraInfo.cameraId, CameraInfo.cameraCharacteristics and String.toCameraSelector().

val cameraInfo = cameraProvider.availableCameraInfos.first()

// V1 needed @ExperimentalCamera2Interop and Camera2CameraInfo.from(cameraInfo)
val id: String = cameraInfo.cameraId
val characteristics = cameraInfo.cameraCharacteristics
val selector = id.toCameraSelector()

The three property and function names above come straight from the release notes; I have not compiled this snippet against 1.7.0, so check the exact import packages in your IDE.

Deprecated: the V1 classes Camera2Interop.Extender, Camera2CameraControl, Camera2CameraInfo and CaptureRequestOptions. They still exist, so this is a planned migration, not a build break. If your app reads Camera2 characteristics or sets capture request options, put it on the list for the next sprint.

2. Kotlin DSL builders

1.7.0 adds top-level builder functions: preview { }, imageCapture { }, imageAnalysis { }, videoCapture(videoOutput) { }, sessionConfig(useCases) { }, highSpeedVideoSessionConfig(videoCapture) { } and extensionSessionConfig(mode, extensionsManager) { }. The session config builders are meant to be write-only: getters on them were deprecated in 1.7.0-alpha03. Also in the notes: setAutoRotationEnabled(boolean) on the session config builders and CameraController, and CameraController.setSessionConfig(SessionConfig, CameraSelector) for custom session configs.

Extensions users should note that ExtensionsManager.getExtensionEnabledCameraSelector() is deprecated in favor of ExtensionSessionConfig.

3. The rest of the stable feature set

4. Upgrade checks

Takeaway: 1.7.0 is a good stable to move to for the fixes alone. The one code change to plan for is leaving Camera2Interop V1: the replacement is stable, opt-in free, and the V1 classes are deprecated.

Sources: AndroidX CameraX release notes and the AndroidX library release index on developer.android.com, fetched Nov 23, 2026. Code samples are my own illustrations of the documented APIs and were not compiled.

Comments 0

No comments yet. Be the first to leave one!

Leave a comment