From 6308db4a5af47b911ace93136b2c27461b76e54d Mon Sep 17 00:00:00 2001 From: Fouckttt Date: Mon, 28 Jul 2025 19:33:08 +0800 Subject: [PATCH] No JSdoc Test Issue:https://gitee.com/openharmony/interface_sdk-js/issues/ICPCVT Signed-off-by: Fouckttt --- api/@ohos.file.cloudSync.d.ts | 44 +++++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/api/@ohos.file.cloudSync.d.ts b/api/@ohos.file.cloudSync.d.ts index 04e7c17c0f..e2afe847c5 100644 --- a/api/@ohos.file.cloudSync.d.ts +++ b/api/@ohos.file.cloudSync.d.ts @@ -241,8 +241,7 @@ declare namespace cloudSync { * @throws { BusinessError } 13600001 - IPC error * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core * @systemapi - * @since arkts{ '1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ off(evt: 'progress', callback: (pg: SyncProgress) => void): void; /** @@ -257,10 +256,47 @@ declare namespace cloudSync { * @throws { BusinessError } 13600001 - IPC error * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core * @systemapi - * @since arkts{ '1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ off(evt: 'progress'): void; + /** + * @since 20 + * @arkts 1.2 + */ + overload off { offWithEvtCallback, offWithEvt }; + /** + * Unsubscribes from sync progress event. + * + * @permission ohos.permission.CLOUDFILE_SYNC + * @param { 'progress' } evt - event type. + * @param { function } callback - callback function with a `SyncProgress` argument. + * @throws { BusinessError } 201 - Permission verification failed. + * @throws { BusinessError } 202 - The caller is not a system application. + * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; + *
2.Incorrect parameter types. + * @throws { BusinessError } 13600001 - IPC error + * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offWithEvtCallback(evt: 'progress', callback: (pg: SyncProgress) => void): void; + /** + * Unsubscribes all callbacks objects from sync progress event. + * + * @permission ohos.permission.CLOUDFILE_SYNC + * @param { 'progress' } evt - event type. + * @throws { BusinessError } 201 - Permission verification failed. + * @throws { BusinessError } 202 - The caller is not a system application. + * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; + *
2.Incorrect parameter types. + * @throws { BusinessError } 13600001 - IPC error + * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offWithEvt(evt: 'progress'): void; /** * Start the gallery sync task. * -- Gitee