You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.
Is there any way to check for permissions without actually showing a dialog using the library?
I know I can do that with the framework library but as the code in Dexter is much cleaner so I prefer to use that.
I couldn't find in the documentation something that points to that.
Thanks.
The text was updated successfully, but these errors were encountered:
The dialog is not part of Dexter but the Android system, there is no way you can get rid of it, even if you don't use Dexter. However, if you are talking about the rationale dialog, that's an optional implementation we provide but you can always use the BasePermissionListener implementation.
@romshiri I was wondering the same thing. From what I can tell, Dexter doesn't have a method to do this, I would guess because the actual platform API call call is simple enough that there's no need to make a dexter wrapper around it. I'd just stick with that:
val calendarPermissionGranted = ContextCompat.checkSelfPermission(thisActivity, Manifest.permission.WRITE_CALENDAR) == PackageManager.PERMISSION_GRANTED
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi guys,
Is there any way to check for permissions without actually showing a dialog using the library?
I know I can do that with the framework library but as the code in Dexter is much cleaner so I prefer to use that.
I couldn't find in the documentation something that points to that.
Thanks.
The text was updated successfully, but these errors were encountered: