diff --git a/api/@ohos.fileshare.d.ts b/api/@ohos.fileshare.d.ts index fd9efdd225aa2252a2ef3996686c6e54fb39add6..2189b2e97a4bab4466a4544ab101e22a8b11244c 100644 --- a/api/@ohos.fileshare.d.ts +++ b/api/@ohos.fileshare.d.ts @@ -175,7 +175,8 @@ declare namespace fileShare { * * @interface PathPolicyInfo * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface PathPolicyInfo { /** @@ -183,7 +184,8 @@ declare namespace fileShare { * * @type { string } * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ path: string; @@ -192,7 +194,8 @@ declare namespace fileShare { * * @type { OperationMode } * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ operationMode: OperationMode; } @@ -202,14 +205,16 @@ declare namespace fileShare { * * @enum { number } policyType * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ export enum PolicyType { /** * Indicates that the policy is temporary. * * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ TEMPORARY_TYPE = 0, @@ -217,7 +222,8 @@ declare namespace fileShare { * Indicates that the policy is persistent. * * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ PERSISTENT_TYPE = 1, } @@ -357,7 +363,7 @@ declare namespace fileShare { * Check permissions for the path. * * @permission ohos.permission.CHECK_SANDBOX_POLICY - * @param { number } tokenID - Token ID of the application. + * @param { int } tokenID - Token ID of the application. * @param { Array } policies - Policy information to check on paths. * @param { PolicyType } policyType - Persistent or temporary type. * @returns { Promise> } Returns the permission state of paths. @@ -368,9 +374,10 @@ declare namespace fileShare { * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization * @systemapi - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ - function checkPathPermission(tokenID: number, policies: Array, policyType: PolicyType): Promise>; + function checkPathPermission(tokenID: int, policies: Array, policyType: PolicyType): Promise>; } export default fileShare;