本文介绍了CameraX.bindToLifecycle()发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么 bindToLifecycle()
只选择 imageCapture
或 videoCapture
?
CameraX.bindToLifecycle(lifecycleOwner, mPreview, imageCapture,videoCapture)
推荐答案
没有 videoCapture
用例。
如,可用的用例是预览,分析和图像捕获(及其组合)。
As mentioned in the official documentation, the available usecases are preview, analysis & image capture (and their combinations).
这篇关于CameraX.bindToLifecycle()发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!