mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
!11068 新增appendBundles说明
Merge pull request !11068 from zhouoaoteng/master
This commit is contained in:
commit
0db359cbe5
20
api/@ohos.file.backup.d.ts
vendored
20
api/@ohos.file.backup.d.ts
vendored
@ -458,7 +458,25 @@ declare namespace backup {
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
appendBundles(bundlesToBackup: string[]): Promise<void>;
|
||||
/**
|
||||
* Append new bundles and backupInfos to backup.
|
||||
*
|
||||
* @permission ohos.permission.BACKUP
|
||||
* @param { string[] } bundlesToBackup Bundles to backup.
|
||||
* @param { string[] } infos Infos to backup.
|
||||
* @returns { Promise<void> } The promise returned by the function.
|
||||
* @throws { BusinessError } 13600001 - IPC error
|
||||
* @throws { BusinessError } 13900001 - Operation not permitted
|
||||
* @throws { BusinessError } 13900005 - I/O error
|
||||
* @throws { BusinessError } 13900011 - Out of memory
|
||||
* @throws { BusinessError } 13900020 - Invalid argument
|
||||
* @throws { BusinessError } 13900025 - No space left on device
|
||||
* @throws { BusinessError } 13900042 - Unknown error
|
||||
* @syscap SystemCapability.FileManagement.StorageService.Backup
|
||||
* @systemapi
|
||||
* @since 12
|
||||
*/
|
||||
appendBundles(bundlesToBackup: string[], infos?: string[]): Promise<void>;
|
||||
|
||||
/**
|
||||
* Append new bundles to backup.
|
||||
|
Loading…
Reference in New Issue
Block a user