Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Kashif-E
Created March 6, 2021 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kashif-E/e53e281d75af2c350a19c6ca7c47f307 to your computer and use it in GitHub Desktop.
Save Kashif-E/e53e281d75af2c350a19c6ca7c47f307 to your computer and use it in GitHub Desktop.
val cameraProviderFuture = ProcessCameraProvider.getInstance(requireContext())
cameraProviderFuture.addListener(Runnable {
val cameraProvider = cameraProviderFuture.get()
}, ContextCompat.getMainExecutor(requireContext()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment