Skip to content

Instantly share code, notes, and snippets.

@tdcolvin
Created January 4, 2024 18:23
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 tdcolvin/8c60db35d6469c3bb1674f5ce4519dba to your computer and use it in GitHub Desktop.
Save tdcolvin/8c60db35d6469c3bb1674f5ce4519dba to your computer and use it in GitHub Desktop.
fun haveAllPermissions(context: Context) =
ALL_BLE_PERMISSIONS
.all { context.checkSelfPermission(it) == PackageManager.PERMISSION_GRANTED }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment