From 3a362a16950af72d4e5ed6851b09364d42a94809 Mon Sep 17 00:00:00 2001 From: lsq Date: Mon, 20 Jun 2022 12:47:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=90=8C=E6=AD=A5=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lsq --- api/@ohos.abilityAccessCtrl.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/@ohos.abilityAccessCtrl.d.ts b/api/@ohos.abilityAccessCtrl.d.ts index a7e2c44790..1daa41ba4c 100644 --- a/api/@ohos.abilityAccessCtrl.d.ts +++ b/api/@ohos.abilityAccessCtrl.d.ts @@ -40,6 +40,15 @@ import { AsyncCallback } from "./basic"; */ verifyAccessToken(tokenID: number, permissionName: string): Promise; + /** + * Checks whether a specified application has been granted the given permission synchronously. + * @param tokenID The tokenId of specified application. + * @param permissionName The permission name to be verified. + * @return Returns permission verify result + * @since 9 + */ + verifyAccessTokenSync(tokenID: number, permissionName: string): GrantStatus; + /** * Grants a specified user_grant permission to the given application. * @param tokenID The tokenId of specified application. -- Gitee