CameraX Multiple Back Cameras
问题 I'm trying to implement a custom camera app using CameraX. Seeing as a lot of new devices have multiple back cameras now, I also want to include that. So basically, the user can select which camera to use. I've tried the following using the addCameraFilter option: val cameraSelector = CameraSelector.Builder() .requireLensFacing(when (camera.cameraSettings?.lensFacing?.let { LensFacing.valueOf(it) }) { LensFacing.Back -> CameraSelector.LENS_FACING_BACK else -> CameraSelector.LENS_FACING_FRONT