hasPermission

Checks if the app has a given permission.

Return

true if the permission is granted, false otherwise.

Parameters

permission

The permission to check.