From 8cf50c13fd92b87bb4c07717983c5c7053b98fc2 Mon Sep 17 00:00:00 2001 From: liangZ15 Date: Tue, 15 Mar 2022 14:31:49 +0000 Subject: [PATCH] update api/@ohos.update.d.ts. --- api/@ohos.update.d.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/api/@ohos.update.d.ts b/api/@ohos.update.d.ts index 0620034b5d..dbc414c2f3 100644 --- a/api/@ohos.update.d.ts +++ b/api/@ohos.update.d.ts @@ -20,7 +20,8 @@ import { AsyncCallback, BussinessError } from "./basic"; * * @devices all * @since 6 - * @Syscap SystemCapability.Updater.Raw + * @syscap SystemCapability.Update.UpdateService + * @systemapi hide for inner use. */ declare namespace update { /** @@ -313,7 +314,8 @@ declare namespace update { * * @devices all * @since 6 - * @Syscap SystemCapability.Updater.Raw + * @syscap SystemCapability.Update.UpdateService + * @systemapi hide for inner use. */ export interface Updater { /** @@ -373,12 +375,12 @@ declare namespace update { applyNewVersion(): Promise; /** - * Reboot to clean cache. + * Reboot and clean user data. * * @since 6 */ - rebootAndCleanCache(callback: AsyncCallback): void; - rebootAndCleanCache(): Promise; + rebootAndCleanUserData(callback: AsyncCallback): void; + rebootAndCleanUserData(): Promise; /** * verify update package. -- Gitee