hasPermission
Checks if the app has a given permission.
Return
true
if the permission is granted, false
otherwise.
Parameters
permission
The permission to check.
Checks if the app has a given permission.
true
if the permission is granted, false
otherwise.
The permission to check.