From e1fbd9183f4f747c8382d95db97a4be11bb98660 Mon Sep 17 00:00:00 2001 From: altay Date: Tue, 1 Mar 2022 15:47:10 +0800 Subject: [PATCH] Description:fixed verifyUriPermission Sig:SIG_ApplicationFramework Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: altay Change-Id: Ic71b0382793dbbb475ff8fd8896ddc07c54c4779 --- ...r.d.ts => @ohos.application.uriPermissionManager.d.ts} | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename api/{@ohos.application.UriPermissionManager.d.ts => @ohos.application.uriPermissionManager.d.ts} (78%) diff --git a/api/@ohos.application.UriPermissionManager.d.ts b/api/@ohos.application.uriPermissionManager.d.ts similarity index 78% rename from api/@ohos.application.UriPermissionManager.d.ts rename to api/@ohos.application.uriPermissionManager.d.ts index f79c741008..ad3ad1de00 100644 --- a/api/@ohos.application.UriPermissionManager.d.ts +++ b/api/@ohos.application.uriPermissionManager.d.ts @@ -23,7 +23,7 @@ import wantConstant from "./@ohos.ability.wantConstant"; * @sysCap SystemCapability.Ability.AbilityRuntime.Core * @permission N/A */ -export default class UriPermissionManager { +declare namespace uriPermissionManager { /** * Check whether the application corresponding to the accesstokenID has access rights to the URI. * @@ -34,6 +34,8 @@ export default class UriPermissionManager { * @param accessTokenId Indicates the access token of the application. * @return Returns 0 if the verification is successful, otherwise returns -1. */ - verifyUriPermission(uri: string, flag: wantConstant.Flags, accessTokenId: number, callback: AsyncCallback): void; - verifyUriPermission(uri: string, flag: wantConstant.Flags, accessTokenId: number): Promise; + function verifyUriPermission(uri: string, flag: wantConstant.Flags, accessTokenId: number, callback: AsyncCallback): void; + function verifyUriPermission(uri: string, flag: wantConstant.Flags, accessTokenId: number): Promise; } + +export default uriPermissionManager; \ No newline at end of file -- Gitee