diff --git a/api/@ohos.abilityAccessCtrl.d.ts b/api/@ohos.abilityAccessCtrl.d.ts index a7e2c44790375f5978fe8ae1ac1621d3f6c7463a..1daa41ba4c9f24d6c288b4da3a48dffdbcd4572e 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.