has Permission
Return
true if the permission has been granted to the app, false if it hasn't been granted or the PackageManager could not be contacted.
Parameters
permission
Manifest.permission to check whether it has been granted.
true if the permission has been granted to the app, false if it hasn't been granted or the PackageManager could not be contacted.
Manifest.permission to check whether it has been granted.