Skip to content

Instantly share code, notes, and snippets.

@husaynhakeem
Last active December 4, 2020 17:50
Show Gist options
  • Save husaynhakeem/39d662a77f9c0fba65cd85ba6ee005b4 to your computer and use it in GitHub Desktop.
Save husaynhakeem/39d662a77f9c0fba65cd85ba6ee005b4 to your computer and use it in GitHub Desktop.
// Enable image capture, equivalent to cameraView.setCaptureMode(IMAGE)
// CameraController's enabled use cases: Preview + ImageCapture
cameraController.setEnabledUseCases(IMAGE_CAPTURE)
// Enable image capture and image analysis
// CameraController's enabled use cases: Preview + ImageCapture + ImageAnalysis
cameraController.setEnabledUseCases(IMAGE_CAPTURE|IMAGE_ANALYSIS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment