setForceUseLegacyCamera

fun setForceUseLegacyCamera(useLegacyCamera: Boolean)

With this method you can request using legacy Camera API even on devices that natively support new Camera2 API. Set this to true only if you have problems with camera management on Lollipop and newer devices. Using legacy camera API is less efficient than new Camera2 API.

Parameters

useLegacyCamera

If set to true, legacy Camera API will be used even on devices that support new Camera2 API.