Is there a way to check permissions that the user has allowed? I ask because I have an option to take a screenshot and if the user denied permissions it crashes the app due to a permission exception. I know there is a method to check camera permissions, but I am looking for write permissions.