takePicture require executor on CameraX (1.0.0-alpha06)
问题 After update from androidx.camera:camera-core:1.0.0-alpha03 to androidx.camera:camera-core:1.0.0-alpha06 signatures of methods setTargetAspectRatio (in ImageCaptureConfig.Builder) and takePicture (in ImageCapture) have been changed. Official documentation and info in web doesn't show how to use new methods (how to specify executor). Code which broken after update: ... val captureConfig = ImageCaptureConfig.Builder() .setTargetAspectRatioCustom(Rational(1, 1)) //this method changed