From cb564a7d33ee605fc4f856970b994b228d2eb545 Mon Sep 17 00:00:00 2001 From: altay Date: Sat, 25 Jun 2022 11:18:45 +0800 Subject: [PATCH] fixed 9eed02a from https://gitee.com/altay/interface_sdk-js/pulls/2033 Description:offline uri permission interface Sig:SIG_ApplicationFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: altay Change-Id: I4e68fb0defa2506fd6d433ae752255c39849bfb7 --- ...ohos.application.uriPermissionManager.d.ts | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 api/@ohos.application.uriPermissionManager.d.ts diff --git a/api/@ohos.application.uriPermissionManager.d.ts b/api/@ohos.application.uriPermissionManager.d.ts deleted file mode 100644 index 37cd85441c..0000000000 --- a/api/@ohos.application.uriPermissionManager.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"), - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { AsyncCallback } from './basic'; -import wantConstant from "./@ohos.ability.wantConstant"; - -/** - * The management class for uri of file. - * - * @since 9 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @permission N/A - */ -declare namespace uriPermissionManager { - /** - * Check whether the application corresponding to the accesstokenID has access rights to the URI. - * - * @since 9 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @param uri File URI. - * @param flag wantConstant.Flags.FLAG_AUTH_READ_URI_PERMISSION or wantConstant.Flags.FLAG_AUTH_WRITE_URI_PERMISSION - * @param accessTokenId Indicates the access token of the application. - * @return Returns 0 if the verification is successful, otherwise returns -1. - */ - 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