Last active
March 15, 2019 20:17
-
-
Save ralphpina/7c95bf86033b0a46692bb315f6e77f13 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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