Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// TakePicture Contract Registration
private val takePicture = registerForActivityResult(ActivityResultContracts.TakePicture()) {bitmap ->
bitmap?.let {
// Calling the takePicture contract
captureButton.setOnClickListener {
var imageUri: Uri? = null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.