Skip to content

Instantly share code, notes, and snippets.

@ralphpina
Last active March 15, 2019 20:17
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 ralphpina/7c95bf86033b0a46692bb315f6e77f13 to your computer and use it in GitHub Desktop.
Save ralphpina/7c95bf86033b0a46692bb315f6e77f13 to your computer and use it in GitHub Desktop.
data class PermissionResult(
val permission: Permission,
val result: Result,
val hasAskedForPermissions: Boolean,
val isMarkedAsDontAsk: Boolean = false
)
enum class Result {
GRANTED, // PermissionChecker.PERMISSION_GRANTED
DENIED, // PermissionChecker.PERMISSION_DENIED
DENIED_APP_OP // PermissionChecker.PERMISSION_DENIED_APP_OP
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment