Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Aug 3, 2021
Embed
What would you like to do?
private fun tienePermisos(permisos: Array<String>): Boolean {
return permisos.all {
return ContextCompat.checkSelfPermission(
requireActivity(),
it
) == PackageManager.PERMISSION_GRANTED
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment