Permissions API
Interface: Permissions
Information about the application's permissions.
Methods
granted()
granted(permissionName: string)
Returns: boolean
Indicates whether the application has been granted a permission or not.
permissionName Name of a permission.
Returns true
if the application has been granted the permission, or
false
if it hasn't.
Note that false
doesn't necessarily mean than the permission has been
explicitly denied by the user. It may be that the permission is not
granted because of a combination of other factors, or that that
permission was never requested and/or does not exist.
PermissionName
String: string
Permission name.