onRestoreEx增加异步形式

Signed-off-by: yaoruozi1@huawei.com <yaoruozi1@huawei.com>
This commit is contained in:
yaoruozi1@huawei.com 2024-05-18 14:59:09 +08:00
parent 2e0528b4d2
commit 8604bf5762

View File

@ -102,8 +102,8 @@ export default class BackupExtensionAbility {
* Developer could override this method to restore.
*
* @param { BundleVersion } bundleVersion Bundle version to be restore.
* @param { string | Promise<string> } restoreInfo RestoreInfo to be restore, support promise
* @returns { string } Return restore result.
* @param { string } restoreInfo RestoreInfo to be restore.
* @returns { string | Promise<string> } Return restore result, support promise.
* @syscap SystemCapability.FileManagement.StorageService.Backup
* @systemapi
* @StageModelOnly