queryAsync

open external fun queryAsync(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>(source)

The query() method of the Permissions interface returns the state of a user permission on the global scope.

MDN Reference