From 84522fdcae4ca98d6f4d0d7d8980f97ed93ee14e Mon Sep 17 00:00:00 2001 From: YinZong Date: Wed, 23 Apr 2025 09:12:34 +0000 Subject: [PATCH] update interfaces/kits/ani/file_share/ets/@ohos.fileshare.ets. Signed-off-by: YinZong --- .../kits/ani/file_share/ets/@ohos.fileshare.ets | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/interfaces/kits/ani/file_share/ets/@ohos.fileshare.ets b/interfaces/kits/ani/file_share/ets/@ohos.fileshare.ets index 2ab89f5a3..25ac7378e 100644 --- a/interfaces/kits/ani/file_share/ets/@ohos.fileshare.ets +++ b/interfaces/kits/ani/file_share/ets/@ohos.fileshare.ets @@ -21,6 +21,20 @@ import hilog from '@ohos.hilog' export namespace fileShare { loadLibrary("fileshare_ani") + export enum OperationMode { + READ_MODE = 0b1, + WRITE_MODE = 0b10 + } + export interface PolicyInfo { + uri: string; + operationMode: int; + } + + class PolicyInfo_inner implements PolicyInfo { + uri: string; + operationMode: int; + } + export function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags, callback: AsyncCallback): void { hilog.info(0x0000, 'grantUriPermission', "Start grantUriPermission in callback main thread."); -- Gitee