startPreview

@RequiresPermission(value = "android.permission.CAMERA")
fun startPreview()

Starts camera preview of cameraPosition.

The surface provided in the constructor already manages startPreview and stopPreview. Use this method only if you need to explicitly start preview.

See also