diff --git a/interfaces/kits/ani/file_share/ets/@ohos.fileshare.ets b/interfaces/kits/ani/file_share/ets/@ohos.fileshare.ets index 2ab89f5a3ffe9695fdd12d6350d1e5e2e198576c..25ac7378e89a68514dc95f9b2083573af97a9cfd 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.");