-
-
Save hichamboushaba/008915a02929205b72f284d5418aecd6 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
private val locationPermissionLauncher = | |
registerForActivityResult(ActivityResultContracts.RequestPermission()) { | |
viewModel.onPermissionGranted( | |
granted = it, | |
shouldShowRationale = shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment