-
-
Save Kashif-E/1d15b673f33c8a2da4566a601815031c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val cameraProviderFuture = ProcessCameraProvider.getInstance(requireContext()) | |
cameraProviderFuture.addListener(Runnable { | |
val cameraProvider = cameraProviderFuture.get() | |
preview = Preview.Builder().build().apply { | |
setSurfaceProvider(binding.viewFinderPkgDetails.createSurfaceProvider()) | |
} | |
}, ContextCompat.getMainExecutor(requireContext())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment