161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd. 361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"), 461847f8eSopenharmony_ci * you may not use this file except in compliance with the License. 561847f8eSopenharmony_ci * You may obtain a copy of the License at 661847f8eSopenharmony_ci * 761847f8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 861847f8eSopenharmony_ci * 961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and 1361847f8eSopenharmony_ci * limitations under the License. 1461847f8eSopenharmony_ci */ 1561847f8eSopenharmony_ci 1661847f8eSopenharmony_ci/** 1761847f8eSopenharmony_ci * @file 1861847f8eSopenharmony_ci * @kit CoreFileKit 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ciimport type { AsyncCallback, Callback } from './@ohos.base'; 2261847f8eSopenharmony_ci 2361847f8eSopenharmony_ci/** 2461847f8eSopenharmony_ci * Provides the capabilities to control cloud file synchronization. 2561847f8eSopenharmony_ci * 2661847f8eSopenharmony_ci * @namespace cloudSync 2761847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 2861847f8eSopenharmony_ci * @since 11 2961847f8eSopenharmony_ci */ 3061847f8eSopenharmony_cideclare namespace cloudSync { 3161847f8eSopenharmony_ci /** 3261847f8eSopenharmony_ci * Describes the Sync state type. 3361847f8eSopenharmony_ci * 3461847f8eSopenharmony_ci * @enum { number } 3561847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 3661847f8eSopenharmony_ci * @since 12 3761847f8eSopenharmony_ci */ 3861847f8eSopenharmony_ci enum SyncState { 3961847f8eSopenharmony_ci /** 4061847f8eSopenharmony_ci * Indicates that the sync state is uploading. 4161847f8eSopenharmony_ci * 4261847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 4361847f8eSopenharmony_ci * @since 12 4461847f8eSopenharmony_ci */ 4561847f8eSopenharmony_ci UPLOADING, 4661847f8eSopenharmony_ci /** 4761847f8eSopenharmony_ci * Indicates that the sync failed in upload processing. 4861847f8eSopenharmony_ci * 4961847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 5061847f8eSopenharmony_ci * @since 12 5161847f8eSopenharmony_ci */ 5261847f8eSopenharmony_ci UPLOAD_FAILED, 5361847f8eSopenharmony_ci /** 5461847f8eSopenharmony_ci * Indicates that the sync state is downloading. 5561847f8eSopenharmony_ci * 5661847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 5761847f8eSopenharmony_ci * @since 12 5861847f8eSopenharmony_ci */ 5961847f8eSopenharmony_ci DOWNLOADING, 6061847f8eSopenharmony_ci /** 6161847f8eSopenharmony_ci * Indicates that the sync failed in download processing. 6261847f8eSopenharmony_ci * 6361847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 6461847f8eSopenharmony_ci * @since 12 6561847f8eSopenharmony_ci */ 6661847f8eSopenharmony_ci DOWNLOAD_FAILED, 6761847f8eSopenharmony_ci /** 6861847f8eSopenharmony_ci * Indicates that the sync finish. 6961847f8eSopenharmony_ci * 7061847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 7161847f8eSopenharmony_ci * @since 12 7261847f8eSopenharmony_ci */ 7361847f8eSopenharmony_ci COMPLETED, 7461847f8eSopenharmony_ci /** 7561847f8eSopenharmony_ci * Indicates that the sync has been stopped. 7661847f8eSopenharmony_ci * 7761847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 7861847f8eSopenharmony_ci * @since 12 7961847f8eSopenharmony_ci */ 8061847f8eSopenharmony_ci STOPPED 8161847f8eSopenharmony_ci } 8261847f8eSopenharmony_ci 8361847f8eSopenharmony_ci /** 8461847f8eSopenharmony_ci * Describes the Sync Error type. 8561847f8eSopenharmony_ci * 8661847f8eSopenharmony_ci * @enum { number } 8761847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 8861847f8eSopenharmony_ci * @since 12 8961847f8eSopenharmony_ci */ 9061847f8eSopenharmony_ci enum ErrorType { 9161847f8eSopenharmony_ci /** 9261847f8eSopenharmony_ci * No error occurred. 9361847f8eSopenharmony_ci * 9461847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 9561847f8eSopenharmony_ci * @since 12 9661847f8eSopenharmony_ci */ 9761847f8eSopenharmony_ci NO_ERROR, 9861847f8eSopenharmony_ci /** 9961847f8eSopenharmony_ci * Synchronization aborted due to network unavailable. 10061847f8eSopenharmony_ci * 10161847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 10261847f8eSopenharmony_ci * @since 12 10361847f8eSopenharmony_ci */ 10461847f8eSopenharmony_ci NETWORK_UNAVAILABLE, 10561847f8eSopenharmony_ci /** 10661847f8eSopenharmony_ci * Synchronization aborted due to wifi unavailable. 10761847f8eSopenharmony_ci * 10861847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 10961847f8eSopenharmony_ci * @since 12 11061847f8eSopenharmony_ci */ 11161847f8eSopenharmony_ci WIFI_UNAVAILABLE, 11261847f8eSopenharmony_ci /** 11361847f8eSopenharmony_ci * Synchronization aborted due to low capacity level. 11461847f8eSopenharmony_ci * 11561847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 11661847f8eSopenharmony_ci * @since 12 11761847f8eSopenharmony_ci */ 11861847f8eSopenharmony_ci BATTERY_LEVEL_LOW, 11961847f8eSopenharmony_ci /** 12061847f8eSopenharmony_ci * Synchronization aborted due to warning low capacity level. 12161847f8eSopenharmony_ci * 12261847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 12361847f8eSopenharmony_ci * @since 12 12461847f8eSopenharmony_ci */ 12561847f8eSopenharmony_ci BATTERY_LEVEL_WARNING, 12661847f8eSopenharmony_ci /** 12761847f8eSopenharmony_ci * Synchronization aborted due to cloud storage is full. 12861847f8eSopenharmony_ci * 12961847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 13061847f8eSopenharmony_ci * @since 12 13161847f8eSopenharmony_ci */ 13261847f8eSopenharmony_ci CLOUD_STORAGE_FULL, 13361847f8eSopenharmony_ci /** 13461847f8eSopenharmony_ci * Synchronization aborted due to local storage is full. 13561847f8eSopenharmony_ci * 13661847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 13761847f8eSopenharmony_ci * @since 12 13861847f8eSopenharmony_ci */ 13961847f8eSopenharmony_ci LOCAL_STORAGE_FULL, 14061847f8eSopenharmony_ci /** 14161847f8eSopenharmony_ci * Synchronization aborted due to device temperature is too high. 14261847f8eSopenharmony_ci * 14361847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 14461847f8eSopenharmony_ci * @since 12 14561847f8eSopenharmony_ci */ 14661847f8eSopenharmony_ci DEVICE_TEMPERATURE_TOO_HIGH, 14761847f8eSopenharmony_ci 14861847f8eSopenharmony_ci } 14961847f8eSopenharmony_ci 15061847f8eSopenharmony_ci /** 15161847f8eSopenharmony_ci * The SyncProgress data structure. 15261847f8eSopenharmony_ci * 15361847f8eSopenharmony_ci * @interface SyncProgress 15461847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 15561847f8eSopenharmony_ci * @since 12 15661847f8eSopenharmony_ci */ 15761847f8eSopenharmony_ci interface SyncProgress { 15861847f8eSopenharmony_ci /** 15961847f8eSopenharmony_ci * The current sync state. 16061847f8eSopenharmony_ci * 16161847f8eSopenharmony_ci * @type { SyncState } 16261847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 16361847f8eSopenharmony_ci * @since 12 16461847f8eSopenharmony_ci */ 16561847f8eSopenharmony_ci state: SyncState; 16661847f8eSopenharmony_ci /** 16761847f8eSopenharmony_ci * The error type of sync. 16861847f8eSopenharmony_ci * 16961847f8eSopenharmony_ci * @type { ErrorType } 17061847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 17161847f8eSopenharmony_ci * @since 12 17261847f8eSopenharmony_ci */ 17361847f8eSopenharmony_ci error: ErrorType; 17461847f8eSopenharmony_ci } 17561847f8eSopenharmony_ci 17661847f8eSopenharmony_ci /** 17761847f8eSopenharmony_ci * GallerySync object. 17861847f8eSopenharmony_ci * 17961847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 18061847f8eSopenharmony_ci * @systemapi 18161847f8eSopenharmony_ci * @since 10 18261847f8eSopenharmony_ci */ 18361847f8eSopenharmony_ci class GallerySync { 18461847f8eSopenharmony_ci /** 18561847f8eSopenharmony_ci * A constructor used to create a GallerySync object. 18661847f8eSopenharmony_ci * 18761847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 18861847f8eSopenharmony_ci * @systemapi 18961847f8eSopenharmony_ci * @since 10 19061847f8eSopenharmony_ci */ 19161847f8eSopenharmony_ci constructor(); 19261847f8eSopenharmony_ci /** 19361847f8eSopenharmony_ci * Subscribes to sync progress change event. This method uses a callback to get sync progress changes. 19461847f8eSopenharmony_ci * 19561847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 19661847f8eSopenharmony_ci * @param { 'progress' } evt - event type. 19761847f8eSopenharmony_ci * @param { function } callback - callback function with a `SyncProgress` argument. 19861847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed. 19961847f8eSopenharmony_ci * @throws { BusinessError } 202 - The caller is not a system application. 20061847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 20161847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 20261847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error 20361847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 20461847f8eSopenharmony_ci * @systemapi 20561847f8eSopenharmony_ci * @since 10 20661847f8eSopenharmony_ci */ 20761847f8eSopenharmony_ci on(evt: 'progress', callback: (pg: SyncProgress) => void): void; 20861847f8eSopenharmony_ci /** 20961847f8eSopenharmony_ci * Unsubscribes from sync progress event. 21061847f8eSopenharmony_ci * 21161847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 21261847f8eSopenharmony_ci * @param { 'progress' } evt - event type. 21361847f8eSopenharmony_ci * @param { function } callback - callback function with a `SyncProgress` argument. 21461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed. 21561847f8eSopenharmony_ci * @throws { BusinessError } 202 - The caller is not a system application. 21661847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 21761847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 21861847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error 21961847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 22061847f8eSopenharmony_ci * @systemapi 22161847f8eSopenharmony_ci * @since 10 22261847f8eSopenharmony_ci */ 22361847f8eSopenharmony_ci off(evt: 'progress', callback: (pg: SyncProgress) => void): void; 22461847f8eSopenharmony_ci /** 22561847f8eSopenharmony_ci * Unsubscribes all callbacks objects from sync progress event. 22661847f8eSopenharmony_ci * 22761847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 22861847f8eSopenharmony_ci * @param { 'progress' } evt - event type. 22961847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed. 23061847f8eSopenharmony_ci * @throws { BusinessError } 202 - The caller is not a system application. 23161847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 23261847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 23361847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error 23461847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 23561847f8eSopenharmony_ci * @systemapi 23661847f8eSopenharmony_ci * @since 10 23761847f8eSopenharmony_ci */ 23861847f8eSopenharmony_ci off(evt: 'progress'): void; 23961847f8eSopenharmony_ci /** 24061847f8eSopenharmony_ci * Start the gallery sync task. 24161847f8eSopenharmony_ci * 24261847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 24361847f8eSopenharmony_ci * @returns { Promise<void> } - Return Promise. 24461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed. 24561847f8eSopenharmony_ci * @throws { BusinessError } 202 - The caller is not a system application. 24661847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:Incorrect parameter types. 24761847f8eSopenharmony_ci * @throws { BusinessError } 22400001 - Cloud status not ready. 24861847f8eSopenharmony_ci * @throws { BusinessError } 22400002 - Network unavailable. 24961847f8eSopenharmony_ci * @throws { BusinessError } 22400003 - Low battery level. 25061847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 25161847f8eSopenharmony_ci * @systemapi 25261847f8eSopenharmony_ci * @since 10 25361847f8eSopenharmony_ci */ 25461847f8eSopenharmony_ci start(): Promise<void>; 25561847f8eSopenharmony_ci /** 25661847f8eSopenharmony_ci * Start the gallery sync task with callback. 25761847f8eSopenharmony_ci * 25861847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 25961847f8eSopenharmony_ci * @param { AsyncCallback<void> } [callback] - Callback function. 26061847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed. 26161847f8eSopenharmony_ci * @throws { BusinessError } 202 - The caller is not a system application. 26261847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 26361847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 26461847f8eSopenharmony_ci * @throws { BusinessError } 22400001 - Cloud status not ready. 26561847f8eSopenharmony_ci * @throws { BusinessError } 22400002 - Network unavailable. 26661847f8eSopenharmony_ci * @throws { BusinessError } 22400003 - Low battery level. 26761847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 26861847f8eSopenharmony_ci * @systemapi 26961847f8eSopenharmony_ci * @since 10 27061847f8eSopenharmony_ci */ 27161847f8eSopenharmony_ci start(callback: AsyncCallback<void>): void; 27261847f8eSopenharmony_ci /** 27361847f8eSopenharmony_ci * Stop the gallery sync task. 27461847f8eSopenharmony_ci * 27561847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 27661847f8eSopenharmony_ci * @returns { Promise<void> } - Return Promise. 27761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed. 27861847f8eSopenharmony_ci * @throws { BusinessError } 202 - The caller is not a system application. 27961847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:Incorrect parameter types. 28061847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 28161847f8eSopenharmony_ci * @systemapi 28261847f8eSopenharmony_ci * @since 10 28361847f8eSopenharmony_ci */ 28461847f8eSopenharmony_ci stop(): Promise<void>; 28561847f8eSopenharmony_ci /** 28661847f8eSopenharmony_ci * Stop the gallery sync task with callback. 28761847f8eSopenharmony_ci * 28861847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 28961847f8eSopenharmony_ci * @param { AsyncCallback<void> } [callback] - Callback function. 29061847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed. 29161847f8eSopenharmony_ci * @throws { BusinessError } 202 - The caller is not a system application. 29261847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 29361847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 29461847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 29561847f8eSopenharmony_ci * @systemapi 29661847f8eSopenharmony_ci * @since 10 29761847f8eSopenharmony_ci */ 29861847f8eSopenharmony_ci stop(callback: AsyncCallback<void>): void; 29961847f8eSopenharmony_ci } 30061847f8eSopenharmony_ci 30161847f8eSopenharmony_ci /** 30261847f8eSopenharmony_ci * Describes the State type of download. 30361847f8eSopenharmony_ci * 30461847f8eSopenharmony_ci * @enum { number } 30561847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 30661847f8eSopenharmony_ci * @since 11 30761847f8eSopenharmony_ci */ 30861847f8eSopenharmony_ci enum State { 30961847f8eSopenharmony_ci /** 31061847f8eSopenharmony_ci * Indicates that the download task in process now. 31161847f8eSopenharmony_ci * 31261847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 31361847f8eSopenharmony_ci * @since 11 31461847f8eSopenharmony_ci */ 31561847f8eSopenharmony_ci RUNNING, 31661847f8eSopenharmony_ci /** 31761847f8eSopenharmony_ci * Indicates that the download task finished. 31861847f8eSopenharmony_ci * 31961847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 32061847f8eSopenharmony_ci * @since 11 32161847f8eSopenharmony_ci */ 32261847f8eSopenharmony_ci COMPLETED, 32361847f8eSopenharmony_ci /** 32461847f8eSopenharmony_ci * Indicates that the download task failed. 32561847f8eSopenharmony_ci * 32661847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 32761847f8eSopenharmony_ci * @since 11 32861847f8eSopenharmony_ci */ 32961847f8eSopenharmony_ci FAILED, 33061847f8eSopenharmony_ci /** 33161847f8eSopenharmony_ci * Indicates that the download task stopped. 33261847f8eSopenharmony_ci * 33361847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 33461847f8eSopenharmony_ci * @since 11 33561847f8eSopenharmony_ci */ 33661847f8eSopenharmony_ci STOPPED 33761847f8eSopenharmony_ci } 33861847f8eSopenharmony_ci 33961847f8eSopenharmony_ci /** 34061847f8eSopenharmony_ci * Describes the download Error type. 34161847f8eSopenharmony_ci * 34261847f8eSopenharmony_ci * @enum { number } 34361847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 34461847f8eSopenharmony_ci * @since 11 34561847f8eSopenharmony_ci */ 34661847f8eSopenharmony_ci enum DownloadErrorType { 34761847f8eSopenharmony_ci /** 34861847f8eSopenharmony_ci * No error occurred. 34961847f8eSopenharmony_ci * 35061847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 35161847f8eSopenharmony_ci * @since 11 35261847f8eSopenharmony_ci */ 35361847f8eSopenharmony_ci NO_ERROR, 35461847f8eSopenharmony_ci /** 35561847f8eSopenharmony_ci * download aborted due to unknown error. 35661847f8eSopenharmony_ci * 35761847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 35861847f8eSopenharmony_ci * @since 11 35961847f8eSopenharmony_ci */ 36061847f8eSopenharmony_ci UNKNOWN_ERROR, 36161847f8eSopenharmony_ci /** 36261847f8eSopenharmony_ci * download aborted due to network unavailable. 36361847f8eSopenharmony_ci * 36461847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 36561847f8eSopenharmony_ci * @since 11 36661847f8eSopenharmony_ci */ 36761847f8eSopenharmony_ci NETWORK_UNAVAILABLE, 36861847f8eSopenharmony_ci /** 36961847f8eSopenharmony_ci * download aborted due to local storage is full. 37061847f8eSopenharmony_ci * 37161847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 37261847f8eSopenharmony_ci * @since 11 37361847f8eSopenharmony_ci */ 37461847f8eSopenharmony_ci LOCAL_STORAGE_FULL, 37561847f8eSopenharmony_ci /** 37661847f8eSopenharmony_ci * download aborted due to content is not found in the cloud. 37761847f8eSopenharmony_ci * 37861847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 37961847f8eSopenharmony_ci * @since 11 38061847f8eSopenharmony_ci */ 38161847f8eSopenharmony_ci CONTENT_NOT_FOUND, 38261847f8eSopenharmony_ci /** 38361847f8eSopenharmony_ci * download aborted due to frequent user requests. 38461847f8eSopenharmony_ci * 38561847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 38661847f8eSopenharmony_ci * @since 11 38761847f8eSopenharmony_ci */ 38861847f8eSopenharmony_ci FREQUENT_USER_REQUESTS, 38961847f8eSopenharmony_ci } 39061847f8eSopenharmony_ci 39161847f8eSopenharmony_ci /** 39261847f8eSopenharmony_ci * The DownloadProgress data structure. 39361847f8eSopenharmony_ci * 39461847f8eSopenharmony_ci * @interface DownloadProgress 39561847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 39661847f8eSopenharmony_ci * @since 11 39761847f8eSopenharmony_ci */ 39861847f8eSopenharmony_ci interface DownloadProgress { 39961847f8eSopenharmony_ci /** 40061847f8eSopenharmony_ci * The current download state. 40161847f8eSopenharmony_ci * 40261847f8eSopenharmony_ci * @type { State } 40361847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 40461847f8eSopenharmony_ci * @since 11 40561847f8eSopenharmony_ci */ 40661847f8eSopenharmony_ci state: State; 40761847f8eSopenharmony_ci /** 40861847f8eSopenharmony_ci * The processed data size for current file. 40961847f8eSopenharmony_ci * 41061847f8eSopenharmony_ci * @type { number } 41161847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 41261847f8eSopenharmony_ci * @since 11 41361847f8eSopenharmony_ci */ 41461847f8eSopenharmony_ci processed: number; 41561847f8eSopenharmony_ci /** 41661847f8eSopenharmony_ci * The size of current file. 41761847f8eSopenharmony_ci * 41861847f8eSopenharmony_ci * @type { number } 41961847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 42061847f8eSopenharmony_ci * @since 11 42161847f8eSopenharmony_ci */ 42261847f8eSopenharmony_ci size: number; 42361847f8eSopenharmony_ci /** 42461847f8eSopenharmony_ci * The uri of current file. 42561847f8eSopenharmony_ci * 42661847f8eSopenharmony_ci * @type { string } 42761847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 42861847f8eSopenharmony_ci * @since 11 42961847f8eSopenharmony_ci */ 43061847f8eSopenharmony_ci uri: string; 43161847f8eSopenharmony_ci /** 43261847f8eSopenharmony_ci * The error type of download. 43361847f8eSopenharmony_ci * 43461847f8eSopenharmony_ci * @type { DownloadErrorType } 43561847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 43661847f8eSopenharmony_ci * @since 11 43761847f8eSopenharmony_ci */ 43861847f8eSopenharmony_ci error: DownloadErrorType; 43961847f8eSopenharmony_ci } 44061847f8eSopenharmony_ci 44161847f8eSopenharmony_ci /** 44261847f8eSopenharmony_ci * Download object. 44361847f8eSopenharmony_ci * 44461847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 44561847f8eSopenharmony_ci * @systemapi 44661847f8eSopenharmony_ci * @since 10 44761847f8eSopenharmony_ci */ 44861847f8eSopenharmony_ci class Download { 44961847f8eSopenharmony_ci /** 45061847f8eSopenharmony_ci * A constructor used to create a Download object. 45161847f8eSopenharmony_ci * 45261847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 45361847f8eSopenharmony_ci * @systemapi 45461847f8eSopenharmony_ci * @since 10 45561847f8eSopenharmony_ci */ 45661847f8eSopenharmony_ci constructor(); 45761847f8eSopenharmony_ci /** 45861847f8eSopenharmony_ci * Subscribes to download progress change event. This method uses a callback to get download progress changes. 45961847f8eSopenharmony_ci * 46061847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 46161847f8eSopenharmony_ci * @param { 'progress' } evt - event type. 46261847f8eSopenharmony_ci * @param { function } callback - callback function with a `DownloadProgress` argument. 46361847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed. 46461847f8eSopenharmony_ci * @throws { BusinessError } 202 - The caller is not a system application. 46561847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 46661847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 46761847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error 46861847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 46961847f8eSopenharmony_ci * @systemapi 47061847f8eSopenharmony_ci * @since 10 47161847f8eSopenharmony_ci */ 47261847f8eSopenharmony_ci on(evt: 'progress', callback: (pg: DownloadProgress) => void): void; 47361847f8eSopenharmony_ci /** 47461847f8eSopenharmony_ci * Unsubscribes from download progress event. 47561847f8eSopenharmony_ci * 47661847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 47761847f8eSopenharmony_ci * @param { 'progress' } evt - event type. 47861847f8eSopenharmony_ci * @param { function } callback - callback function with a `DownloadProgress` argument. 47961847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed. 48061847f8eSopenharmony_ci * @throws { BusinessError } 202 - The caller is not a system application. 48161847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 48261847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 48361847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error 48461847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 48561847f8eSopenharmony_ci * @systemapi 48661847f8eSopenharmony_ci * @since 10 48761847f8eSopenharmony_ci */ 48861847f8eSopenharmony_ci off(evt: 'progress', callback: (pg: DownloadProgress) => void): void; 48961847f8eSopenharmony_ci /** 49061847f8eSopenharmony_ci * Unsubscribes all callbacks objects from download progress event. 49161847f8eSopenharmony_ci * 49261847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 49361847f8eSopenharmony_ci * @param { 'progress' } evt - event type. 49461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed. 49561847f8eSopenharmony_ci * @throws { BusinessError } 202 - The caller is not a system application. 49661847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 49761847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 49861847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error 49961847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 50061847f8eSopenharmony_ci * @systemapi 50161847f8eSopenharmony_ci * @since 10 50261847f8eSopenharmony_ci */ 50361847f8eSopenharmony_ci off(evt: 'progress'): void; 50461847f8eSopenharmony_ci /** 50561847f8eSopenharmony_ci * Start the download task. 50661847f8eSopenharmony_ci * 50761847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 50861847f8eSopenharmony_ci * @param { string } uri - uri of file. 50961847f8eSopenharmony_ci * @returns { Promise<void> } - Return Promise. 51061847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed. 51161847f8eSopenharmony_ci * @throws { BusinessError } 202 - The caller is not a system application. 51261847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 51361847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 51461847f8eSopenharmony_ci * @throws { BusinessError } 13900002 - No such file or directory. 51561847f8eSopenharmony_ci * @throws { BusinessError } 13900025 - No space left on device. 51661847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 51761847f8eSopenharmony_ci * @systemapi 51861847f8eSopenharmony_ci * @since 10 51961847f8eSopenharmony_ci */ 52061847f8eSopenharmony_ci start(uri: string): Promise<void>; 52161847f8eSopenharmony_ci /** 52261847f8eSopenharmony_ci * Start the download task with callback. 52361847f8eSopenharmony_ci * 52461847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 52561847f8eSopenharmony_ci * @param { string } uri - uri of file. 52661847f8eSopenharmony_ci * @param { AsyncCallback<void> } [callback] - Callback function. 52761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed. 52861847f8eSopenharmony_ci * @throws { BusinessError } 202 - The caller is not a system application. 52961847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 53061847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 53161847f8eSopenharmony_ci * @throws { BusinessError } 13900002 - No such file or directory. 53261847f8eSopenharmony_ci * @throws { BusinessError } 13900025 - No space left on device. 53361847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 53461847f8eSopenharmony_ci * @systemapi 53561847f8eSopenharmony_ci * @since 10 53661847f8eSopenharmony_ci */ 53761847f8eSopenharmony_ci start(uri: string, callback: AsyncCallback<void>): void; 53861847f8eSopenharmony_ci /** 53961847f8eSopenharmony_ci * Stop the download task. 54061847f8eSopenharmony_ci * 54161847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 54261847f8eSopenharmony_ci * @param { string } uri - uri of file. 54361847f8eSopenharmony_ci * @returns { Promise<void> } - Return Promise. 54461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed. 54561847f8eSopenharmony_ci * @throws { BusinessError } 202 - The caller is not a system application. 54661847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 54761847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 54861847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 54961847f8eSopenharmony_ci * @systemapi 55061847f8eSopenharmony_ci * @since 10 55161847f8eSopenharmony_ci */ 55261847f8eSopenharmony_ci stop(uri: string): Promise<void>; 55361847f8eSopenharmony_ci /** 55461847f8eSopenharmony_ci * Stop the download task with callback. 55561847f8eSopenharmony_ci * 55661847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 55761847f8eSopenharmony_ci * @param { string } uri - uri of file. 55861847f8eSopenharmony_ci * @param { AsyncCallback<void> } [callback] - Callback function. 55961847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed. 56061847f8eSopenharmony_ci * @throws { BusinessError } 202 - The caller is not a system application. 56161847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 56261847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 56361847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 56461847f8eSopenharmony_ci * @systemapi 56561847f8eSopenharmony_ci * @since 10 56661847f8eSopenharmony_ci */ 56761847f8eSopenharmony_ci stop(uri: string, callback: AsyncCallback<void>): void; 56861847f8eSopenharmony_ci } 56961847f8eSopenharmony_ci 57061847f8eSopenharmony_ci /** 57161847f8eSopenharmony_ci * FileSync object. 57261847f8eSopenharmony_ci * 57361847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 57461847f8eSopenharmony_ci * @since 12 57561847f8eSopenharmony_ci */ 57661847f8eSopenharmony_ci class FileSync { 57761847f8eSopenharmony_ci /** 57861847f8eSopenharmony_ci * A constructor used to create a FileSync object. 57961847f8eSopenharmony_ci * 58061847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:Incorrect parameter types. 58161847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 58261847f8eSopenharmony_ci * @since 12 58361847f8eSopenharmony_ci */ 58461847f8eSopenharmony_ci constructor(); 58561847f8eSopenharmony_ci /** 58661847f8eSopenharmony_ci * A constructor used to create a FileSync object. 58761847f8eSopenharmony_ci * 58861847f8eSopenharmony_ci * @param { string } bundleName - Name of the bundle that need to synchronize and subscribe the sync progress event. 58961847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. 59061847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 59161847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 59261847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 59361847f8eSopenharmony_ci * @systemapi 59461847f8eSopenharmony_ci * @since 12 59561847f8eSopenharmony_ci */ 59661847f8eSopenharmony_ci constructor(bundleName: string); 59761847f8eSopenharmony_ci /** 59861847f8eSopenharmony_ci * Subscribes to sync progress change event. This method uses a callback to get sync progress changes. 59961847f8eSopenharmony_ci * 60061847f8eSopenharmony_ci * @param { 'progress' } event - event type. 60161847f8eSopenharmony_ci * @param { Callback<SyncProgress> } callback - callback function with a `SyncProgress` argument. 60261847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 60361847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 60461847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error 60561847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 60661847f8eSopenharmony_ci * @since 12 60761847f8eSopenharmony_ci */ 60861847f8eSopenharmony_ci on(event: 'progress', callback: Callback<SyncProgress>): void; 60961847f8eSopenharmony_ci /** 61061847f8eSopenharmony_ci * Unsubscribes from sync progress event. 61161847f8eSopenharmony_ci * 61261847f8eSopenharmony_ci * @param { 'progress' } event - event type. 61361847f8eSopenharmony_ci * @param { Callback<SyncProgress> } [callback] - callback function with a `SyncProgress` argument. 61461847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified;2.Incorrect parameter types. 61561847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error 61661847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 61761847f8eSopenharmony_ci * @since 12 61861847f8eSopenharmony_ci */ 61961847f8eSopenharmony_ci off(event: 'progress', callback?: Callback<SyncProgress>): void; 62061847f8eSopenharmony_ci /** 62161847f8eSopenharmony_ci * Start the file sync task. 62261847f8eSopenharmony_ci * 62361847f8eSopenharmony_ci * @returns { Promise<void> } - Return Promise. 62461847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:Incorrect parameter types. 62561847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error. 62661847f8eSopenharmony_ci * @throws { BusinessError } 22400001 - Cloud status not ready. 62761847f8eSopenharmony_ci * @throws { BusinessError } 22400002 - Network unavailable. 62861847f8eSopenharmony_ci * @throws { BusinessError } 22400003 - Low battery level. 62961847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 63061847f8eSopenharmony_ci * @since 12 63161847f8eSopenharmony_ci */ 63261847f8eSopenharmony_ci start(): Promise<void>; 63361847f8eSopenharmony_ci /** 63461847f8eSopenharmony_ci * Start the file sync task with callback. 63561847f8eSopenharmony_ci * 63661847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback function. 63761847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified;2.Incorrect parameter types. 63861847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error. 63961847f8eSopenharmony_ci * @throws { BusinessError } 22400001 - Cloud status not ready. 64061847f8eSopenharmony_ci * @throws { BusinessError } 22400002 - Network unavailable. 64161847f8eSopenharmony_ci * @throws { BusinessError } 22400003 - Low battery level. 64261847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 64361847f8eSopenharmony_ci * @since 12 64461847f8eSopenharmony_ci */ 64561847f8eSopenharmony_ci start(callback: AsyncCallback<void>): void; 64661847f8eSopenharmony_ci /** 64761847f8eSopenharmony_ci * Stop the file sync task. 64861847f8eSopenharmony_ci * 64961847f8eSopenharmony_ci * @returns { Promise<void> } - Return Promise. 65061847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:Incorrect parameter types. 65161847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error. 65261847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 65361847f8eSopenharmony_ci * @since 12 65461847f8eSopenharmony_ci */ 65561847f8eSopenharmony_ci stop(): Promise<void>; 65661847f8eSopenharmony_ci /** 65761847f8eSopenharmony_ci * Stop the file sync task with callback. 65861847f8eSopenharmony_ci * 65961847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback function. 66061847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 66161847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 66261847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error. 66361847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 66461847f8eSopenharmony_ci * @since 12 66561847f8eSopenharmony_ci */ 66661847f8eSopenharmony_ci stop(callback: AsyncCallback<void>): void; 66761847f8eSopenharmony_ci /** 66861847f8eSopenharmony_ci * Get the last synchronization time. 66961847f8eSopenharmony_ci * 67061847f8eSopenharmony_ci * @returns { Promise<number> } - Return the date of last synchronization. 67161847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:Incorrect parameter types. 67261847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error. 67361847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 67461847f8eSopenharmony_ci * @since 12 67561847f8eSopenharmony_ci */ 67661847f8eSopenharmony_ci getLastSyncTime(): Promise<number>; 67761847f8eSopenharmony_ci /** 67861847f8eSopenharmony_ci * Get the last synchronization time. 67961847f8eSopenharmony_ci * 68061847f8eSopenharmony_ci * @param { AsyncCallback<number> } callback - Callback function. 68161847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 68261847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 68361847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error. 68461847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 68561847f8eSopenharmony_ci * @since 12 68661847f8eSopenharmony_ci */ 68761847f8eSopenharmony_ci getLastSyncTime(callback: AsyncCallback<number>): void; 68861847f8eSopenharmony_ci } 68961847f8eSopenharmony_ci /** 69061847f8eSopenharmony_ci * CloudFileCache object. 69161847f8eSopenharmony_ci * 69261847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 69361847f8eSopenharmony_ci * @since 11 69461847f8eSopenharmony_ci */ 69561847f8eSopenharmony_ci class CloudFileCache { 69661847f8eSopenharmony_ci /** 69761847f8eSopenharmony_ci * A constructor used to create a CloudFileCache object. 69861847f8eSopenharmony_ci * 69961847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:Incorrect parameter types. 70061847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 70161847f8eSopenharmony_ci * @since 11 70261847f8eSopenharmony_ci */ 70361847f8eSopenharmony_ci constructor(); 70461847f8eSopenharmony_ci /** 70561847f8eSopenharmony_ci * Subscribes to cloud file cache download progress change event. This method uses a callback to get download progress changes. 70661847f8eSopenharmony_ci * 70761847f8eSopenharmony_ci * @param { 'progress' } event - event type. 70861847f8eSopenharmony_ci * @param { Callback<DownloadProgress> } callback - callback function with a `DownloadProgress` argument. 70961847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 71061847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 71161847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error 71261847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 71361847f8eSopenharmony_ci * @since 11 71461847f8eSopenharmony_ci */ 71561847f8eSopenharmony_ci on(event: 'progress', callback: Callback<DownloadProgress>): void; 71661847f8eSopenharmony_ci /** 71761847f8eSopenharmony_ci * Unsubscribes from cloud file cache download progress event. 71861847f8eSopenharmony_ci * 71961847f8eSopenharmony_ci * @param { 'progress' } event - event type. 72061847f8eSopenharmony_ci * @param { Callback<DownloadProgress> } [callback] - callback function with a `DownloadProgress` argument. 72161847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 72261847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 72361847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error 72461847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 72561847f8eSopenharmony_ci * @since 11 72661847f8eSopenharmony_ci */ 72761847f8eSopenharmony_ci off(event: 'progress', callback?: Callback<DownloadProgress>): void; 72861847f8eSopenharmony_ci 72961847f8eSopenharmony_ci /** 73061847f8eSopenharmony_ci * Start the cloud file cache download task. 73161847f8eSopenharmony_ci * 73261847f8eSopenharmony_ci * @param { string } uri - uri of file. 73361847f8eSopenharmony_ci * @returns { Promise<void> } - Return Promise. 73461847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 73561847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 73661847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error. 73761847f8eSopenharmony_ci * @throws { BusinessError } 13900002 - No such file or directory. 73861847f8eSopenharmony_ci * @throws { BusinessError } 13900025 - No space left on device. 73961847f8eSopenharmony_ci * @throws { BusinessError } 14000002 - Invalid URI. 74061847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 74161847f8eSopenharmony_ci * @since 11 74261847f8eSopenharmony_ci */ 74361847f8eSopenharmony_ci start(uri: string): Promise<void>; 74461847f8eSopenharmony_ci /** 74561847f8eSopenharmony_ci * Start the cloud file cache download task with callback. 74661847f8eSopenharmony_ci * 74761847f8eSopenharmony_ci * @param { string } uri - uri of file. 74861847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback function. 74961847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 75061847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 75161847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error. 75261847f8eSopenharmony_ci * @throws { BusinessError } 13900002 - No such file or directory. 75361847f8eSopenharmony_ci * @throws { BusinessError } 13900025 - No space left on device. 75461847f8eSopenharmony_ci * @throws { BusinessError } 14000002 - Invalid URI. 75561847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 75661847f8eSopenharmony_ci * @since 11 75761847f8eSopenharmony_ci */ 75861847f8eSopenharmony_ci start(uri: string, callback: AsyncCallback<void>): void; 75961847f8eSopenharmony_ci /** 76061847f8eSopenharmony_ci * Stop the cloud file cache download task. 76161847f8eSopenharmony_ci * 76261847f8eSopenharmony_ci * @param { string } uri - uri of file. 76361847f8eSopenharmony_ci * @returns { Promise<void> } - Return Promise. 76461847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 76561847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 76661847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error. 76761847f8eSopenharmony_ci * @throws { BusinessError } 13900002 - No such file or directory. 76861847f8eSopenharmony_ci * @throws { BusinessError } 14000002 - Invalid URI. 76961847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 77061847f8eSopenharmony_ci * @since 11 77161847f8eSopenharmony_ci */ 77261847f8eSopenharmony_ci /** 77361847f8eSopenharmony_ci * Stop the cloud file cache download task. 77461847f8eSopenharmony_ci * 77561847f8eSopenharmony_ci * @param { string } uri - uri of file. 77661847f8eSopenharmony_ci * @param { boolean } [needClean] - whether to delete the file that already downloaded. 77761847f8eSopenharmony_ci * @returns { Promise<void> } - Return Promise. 77861847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 77961847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 78061847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error. 78161847f8eSopenharmony_ci * @throws { BusinessError } 13900002 - No such file or directory. 78261847f8eSopenharmony_ci * @throws { BusinessError } 14000002 - Invalid URI. 78361847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 78461847f8eSopenharmony_ci * @since 12 78561847f8eSopenharmony_ci */ 78661847f8eSopenharmony_ci stop(uri: string, needClean?: boolean): Promise<void>; 78761847f8eSopenharmony_ci /** 78861847f8eSopenharmony_ci * Stop the cloud file cache download task with callback. 78961847f8eSopenharmony_ci * 79061847f8eSopenharmony_ci * @param { string } uri - uri of file. 79161847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback function. 79261847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 79361847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 79461847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error. 79561847f8eSopenharmony_ci * @throws { BusinessError } 13900002 - No such file or directory. 79661847f8eSopenharmony_ci * @throws { BusinessError } 14000002 - Invalid URI. 79761847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 79861847f8eSopenharmony_ci * @since 11 79961847f8eSopenharmony_ci */ 80061847f8eSopenharmony_ci stop(uri: string, callback: AsyncCallback<void>): void; 80161847f8eSopenharmony_ci /** 80261847f8eSopenharmony_ci * Clean the local file cache. 80361847f8eSopenharmony_ci * 80461847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 80561847f8eSopenharmony_ci * @param { string } uri - uri of file. 80661847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed, usually the result returned by VerifyAccessToken. 80761847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. 80861847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 80961847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 81061847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error. 81161847f8eSopenharmony_ci * @throws { BusinessError } 13900002 - No such file or directory. 81261847f8eSopenharmony_ci * @throws { BusinessError } 14000002 - Invalid URI. 81361847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 81461847f8eSopenharmony_ci * @systemapi 81561847f8eSopenharmony_ci * @since 11 81661847f8eSopenharmony_ci */ 81761847f8eSopenharmony_ci cleanCache(uri: string): void; 81861847f8eSopenharmony_ci } 81961847f8eSopenharmony_ci 82061847f8eSopenharmony_ci /** 82161847f8eSopenharmony_ci * Describes the sync state of file. 82261847f8eSopenharmony_ci * 82361847f8eSopenharmony_ci * @enum { number } 82461847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 82561847f8eSopenharmony_ci * @systemapi 82661847f8eSopenharmony_ci * @since 11 82761847f8eSopenharmony_ci */ 82861847f8eSopenharmony_ci enum FileSyncState { 82961847f8eSopenharmony_ci /** 83061847f8eSopenharmony_ci * Indicates that the file cache is uploading now. 83161847f8eSopenharmony_ci * 83261847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 83361847f8eSopenharmony_ci * @systemapi 83461847f8eSopenharmony_ci * @since 11 83561847f8eSopenharmony_ci */ 83661847f8eSopenharmony_ci UPLOADING, 83761847f8eSopenharmony_ci /** 83861847f8eSopenharmony_ci * Indicates that the file cache is downloading now. 83961847f8eSopenharmony_ci * 84061847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 84161847f8eSopenharmony_ci * @systemapi 84261847f8eSopenharmony_ci * @since 11 84361847f8eSopenharmony_ci */ 84461847f8eSopenharmony_ci DOWNLOADING, 84561847f8eSopenharmony_ci /** 84661847f8eSopenharmony_ci * Indicates that the file cache sync task finished. 84761847f8eSopenharmony_ci * 84861847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 84961847f8eSopenharmony_ci * @systemapi 85061847f8eSopenharmony_ci * @since 11 85161847f8eSopenharmony_ci */ 85261847f8eSopenharmony_ci COMPLETED, 85361847f8eSopenharmony_ci /** 85461847f8eSopenharmony_ci * Indicates that the file cache sync task stopped. 85561847f8eSopenharmony_ci * 85661847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 85761847f8eSopenharmony_ci * @systemapi 85861847f8eSopenharmony_ci * @since 11 85961847f8eSopenharmony_ci */ 86061847f8eSopenharmony_ci STOPPED, 86161847f8eSopenharmony_ci /** 86261847f8eSopenharmony_ci * Indicates that the file is waiting for upload. 86361847f8eSopenharmony_ci * 86461847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 86561847f8eSopenharmony_ci * @systemapi 86661847f8eSopenharmony_ci * @since 12 86761847f8eSopenharmony_ci */ 86861847f8eSopenharmony_ci TO_BE_UPLOADED, 86961847f8eSopenharmony_ci /** 87061847f8eSopenharmony_ci * Indicates that the file has been already uploaded successfully. 87161847f8eSopenharmony_ci * 87261847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 87361847f8eSopenharmony_ci * @systemapi 87461847f8eSopenharmony_ci * @since 12 87561847f8eSopenharmony_ci */ 87661847f8eSopenharmony_ci UPLOAD_SUCCESS, 87761847f8eSopenharmony_ci /** 87861847f8eSopenharmony_ci * Indicates that the file upload failure. 87961847f8eSopenharmony_ci * 88061847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 88161847f8eSopenharmony_ci * @systemapi 88261847f8eSopenharmony_ci * @since 12 88361847f8eSopenharmony_ci */ 88461847f8eSopenharmony_ci UPLOAD_FAILURE, 88561847f8eSopenharmony_ci } 88661847f8eSopenharmony_ci 88761847f8eSopenharmony_ci /** 88861847f8eSopenharmony_ci * Get the sync state of file. 88961847f8eSopenharmony_ci * 89061847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 89161847f8eSopenharmony_ci * @param { Array<string> } uri - uri of files. 89261847f8eSopenharmony_ci * @returns { Promise<Array<FileSyncState>> } - Return the sync state of given files. 89361847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed, usually the result returned by VerifyAccessToken. 89461847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. 89561847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 89661847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 89761847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error. 89861847f8eSopenharmony_ci * @throws { BusinessError } 13900002 - No such file or directory. 89961847f8eSopenharmony_ci * @throws { BusinessError } 14000002 - Invalid URI. 90061847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 90161847f8eSopenharmony_ci * @systemapi 90261847f8eSopenharmony_ci * @since 11 90361847f8eSopenharmony_ci */ 90461847f8eSopenharmony_ci function getFileSyncState(uri: Array<string>): Promise<Array<FileSyncState>>; 90561847f8eSopenharmony_ci /** 90661847f8eSopenharmony_ci * Get the sync state of file. 90761847f8eSopenharmony_ci * 90861847f8eSopenharmony_ci * @permission ohos.permission.CLOUDFILE_SYNC 90961847f8eSopenharmony_ci * @param { Array<string> } uri - uri of file. 91061847f8eSopenharmony_ci * @param { AsyncCallback<Array<FileSyncState>> } callback - The callback is used to return the sync state of given files. 91161847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission verification failed, usually the result returned by VerifyAccessToken. 91261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. 91361847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 91461847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 91561847f8eSopenharmony_ci * @throws { BusinessError } 13600001 - IPC error. 91661847f8eSopenharmony_ci * @throws { BusinessError } 13900002 - No such file or directory. 91761847f8eSopenharmony_ci * @throws { BusinessError } 14000002 - Invalid URI. 91861847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 91961847f8eSopenharmony_ci * @systemapi 92061847f8eSopenharmony_ci * @since 11 92161847f8eSopenharmony_ci */ 92261847f8eSopenharmony_ci function getFileSyncState(uri: Array<string>, callback: AsyncCallback<Array<FileSyncState>>): void; 92361847f8eSopenharmony_ci /** 92461847f8eSopenharmony_ci * Get the sync state of file. 92561847f8eSopenharmony_ci * 92661847f8eSopenharmony_ci * @param { string } uri - uri of file. 92761847f8eSopenharmony_ci * @returns { FileSyncState } - return the sync state of given files. 92861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. 92961847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 93061847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 93161847f8eSopenharmony_ci * @throws { BusinessError } 13900002 - No such file or directory. 93261847f8eSopenharmony_ci * @throws { BusinessError } 13900004 - Interrupted system call 93361847f8eSopenharmony_ci * @throws { BusinessError } 13900010 - Try again 93461847f8eSopenharmony_ci * @throws { BusinessError } 13900012 - Permission denied by the file system 93561847f8eSopenharmony_ci * @throws { BusinessError } 13900031 - Function not implemented 93661847f8eSopenharmony_ci * @throws { BusinessError } 13900042 - Unknown error 93761847f8eSopenharmony_ci * @throws { BusinessError } 14000002 - Invalid URI. 93861847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 93961847f8eSopenharmony_ci * @systemapi 94061847f8eSopenharmony_ci * @since 12 94161847f8eSopenharmony_ci */ 94261847f8eSopenharmony_ci function getFileSyncState(uri: string): FileSyncState; 94361847f8eSopenharmony_ci /** 94461847f8eSopenharmony_ci * Register change notify for the specified uri. 94561847f8eSopenharmony_ci * 94661847f8eSopenharmony_ci * @param { string } uri - uri of file. 94761847f8eSopenharmony_ci * @param { boolean } recursion - Whether to monitor the child files. 94861847f8eSopenharmony_ci * @param { Callback<ChangeData> } callback - Returns the changed data. 94961847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 95061847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 95161847f8eSopenharmony_ci * @throws { BusinessError } 13900001 - Operation not permitted 95261847f8eSopenharmony_ci * @throws { BusinessError } 13900002 - No such file or directory. 95361847f8eSopenharmony_ci * @throws { BusinessError } 13900012 - Permission denied 95461847f8eSopenharmony_ci * @throws { BusinessError } 14000002 - Invalid URI. 95561847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 95661847f8eSopenharmony_ci * @since 12 95761847f8eSopenharmony_ci */ 95861847f8eSopenharmony_ci function registerChange(uri: string, recursion: boolean, callback: Callback<ChangeData>): void; 95961847f8eSopenharmony_ci /** 96061847f8eSopenharmony_ci * Unregister change notify fir the specified uri. 96161847f8eSopenharmony_ci * 96261847f8eSopenharmony_ci * @param { string } uri - uri of file. 96361847f8eSopenharmony_ci * @throws { BusinessError } 401 - The input parameter is invalid.Possible causes:1.Mandatory parameters are left unspecified; 96461847f8eSopenharmony_ci * <br>2.Incorrect parameter types. 96561847f8eSopenharmony_ci * @throws { BusinessError } 13900001 - Operation not permitted 96661847f8eSopenharmony_ci * @throws { BusinessError } 13900002 - No such file or directory. 96761847f8eSopenharmony_ci * @throws { BusinessError } 13900012 - Permission denied 96861847f8eSopenharmony_ci * @throws { BusinessError } 14000002 - Invalid URI. 96961847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 97061847f8eSopenharmony_ci * @since 12 97161847f8eSopenharmony_ci */ 97261847f8eSopenharmony_ci function unregisterChange(uri: string): void; 97361847f8eSopenharmony_ci 97461847f8eSopenharmony_ci /** 97561847f8eSopenharmony_ci * Enumeration types of data change. 97661847f8eSopenharmony_ci * 97761847f8eSopenharmony_ci * @enum { number } NotifyType 97861847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 97961847f8eSopenharmony_ci * @since 12 98061847f8eSopenharmony_ci */ 98161847f8eSopenharmony_ci enum NotifyType { 98261847f8eSopenharmony_ci /** 98361847f8eSopenharmony_ci * File has been newly created 98461847f8eSopenharmony_ci * 98561847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 98661847f8eSopenharmony_ci * @since 12 98761847f8eSopenharmony_ci */ 98861847f8eSopenharmony_ci NOTIFY_ADDED, 98961847f8eSopenharmony_ci /** 99061847f8eSopenharmony_ci * File has been modified. 99161847f8eSopenharmony_ci * 99261847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 99361847f8eSopenharmony_ci * @since 12 99461847f8eSopenharmony_ci */ 99561847f8eSopenharmony_ci NOTIFY_MODIFIED, 99661847f8eSopenharmony_ci /** 99761847f8eSopenharmony_ci * File has been deleted. 99861847f8eSopenharmony_ci * 99961847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 100061847f8eSopenharmony_ci * @since 12 100161847f8eSopenharmony_ci */ 100261847f8eSopenharmony_ci NOTIFY_DELETED, 100361847f8eSopenharmony_ci /** 100461847f8eSopenharmony_ci * File has been renamed or moved. 100561847f8eSopenharmony_ci * 100661847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 100761847f8eSopenharmony_ci * @since 12 100861847f8eSopenharmony_ci */ 100961847f8eSopenharmony_ci NOTIFY_RENAMED 101061847f8eSopenharmony_ci } 101161847f8eSopenharmony_ci 101261847f8eSopenharmony_ci /** 101361847f8eSopenharmony_ci * Defines the change data 101461847f8eSopenharmony_ci * 101561847f8eSopenharmony_ci * @interface ChangeData 101661847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 101761847f8eSopenharmony_ci * @since 12 101861847f8eSopenharmony_ci */ 101961847f8eSopenharmony_ci interface ChangeData { 102061847f8eSopenharmony_ci /** 102161847f8eSopenharmony_ci * The notify type of the change. 102261847f8eSopenharmony_ci * 102361847f8eSopenharmony_ci * @type {NotifyType} 102461847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 102561847f8eSopenharmony_ci * @since 12 102661847f8eSopenharmony_ci */ 102761847f8eSopenharmony_ci type: NotifyType; 102861847f8eSopenharmony_ci /** 102961847f8eSopenharmony_ci * Indicates whether the changed uri is directory. 103061847f8eSopenharmony_ci * 103161847f8eSopenharmony_ci * @type {Array<boolean>} 103261847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 103361847f8eSopenharmony_ci * @since 12 103461847f8eSopenharmony_ci */ 103561847f8eSopenharmony_ci isDirectory: Array<boolean>; 103661847f8eSopenharmony_ci /** 103761847f8eSopenharmony_ci * The changed uris. 103861847f8eSopenharmony_ci * 103961847f8eSopenharmony_ci * @type {Array<string>} 104061847f8eSopenharmony_ci * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core 104161847f8eSopenharmony_ci * @since 12 104261847f8eSopenharmony_ci */ 104361847f8eSopenharmony_ci uris: Array<string>; 104461847f8eSopenharmony_ci } 104561847f8eSopenharmony_ci} 104661847f8eSopenharmony_ci 104761847f8eSopenharmony_ciexport default cloudSync; 1048