startPreview

@RequiresPermission(allOf = ["android.permission.CAMERA"])
fun startPreview()

Starts camera preview of camera.

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

See also