From 1fc873a2081564f81dfbedae597978cb09812c65 Mon Sep 17 00:00:00 2001 From: KnightWood <33772264+Knightwood@users.noreply.github.com> Date: Wed, 26 Jun 2024 18:09:42 +0800 Subject: [PATCH] 1 --- "docs/\347\233\270\346\234\272\351\205\215\347\275\256.md" | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git "a/docs/\347\233\270\346\234\272\351\205\215\347\275\256.md" "b/docs/\347\233\270\346\234\272\351\205\215\347\275\256.md" index b190b45..1d74fbe 100644 --- "a/docs/\347\233\270\346\234\272\351\205\215\347\275\256.md" +++ "b/docs/\347\233\270\346\234\272\351\205\215\347\275\256.md" @@ -55,7 +55,7 @@ class CameraExampleActivity : BaseCameraXActivity() { this.recordConfig = videoRecordConfig //这里指定了打开相机时的默认用例模式,图像分析、拍照、录像等。其实就是指定相机的用例组合 this.useCaseBundle = - if (useImageDetection) UseCaseBundle.imageAnalysis else UseCaseBundle.takePhoto + if (useImageDetection) UseCaseMode.imageAnalysis else UseCaseMode.takePhoto //闪光灯配置 this.flashMode = FlashModel.CAMERA_FLASH_AUTO //android R以下时,在少数display为null的情况下,设置预览,拍照的默认分辨率 @@ -98,7 +98,7 @@ class CameraExampleActivity2 : AppCompatActivity(), CameraXFragmentEventListener fun parse(intent:Intent):ManagerConfig{ return ManagerConfig().apply { //return 相机配置实例 //这里指定了打开相机时的默认用例模式,图像分析、拍照、录像等。其实就是指定相机的用例组合 - this.useCaseBundle = UseCaseBundle.takePhoto + this.useCaseBundle = UseCaseMode.takePhoto //闪光灯配置 this.flashMode = FlashModel.CAMERA_FLASH_AUTO //android R以下时,在少数display为null的情况下,设置预览,拍照的默认分辨率 @@ -115,7 +115,7 @@ class CameraExampleActivity2 : AppCompatActivity(), CameraXFragmentEventListener ```kotlin return ManagerConfig().apply { //return 相机配置实例 // 这里指定了打开相机时的默认模式,图像分析、拍照、录像等。 - this.useCaseBundle = UseCaseBundle.imageAnalysis + this.useCaseBundle = UseCaseMode.imageAnalysis } ```