From 4dec9db38c94a4d27d30ae14c552eb961c8a3e08 Mon Sep 17 00:00:00 2001 From: ma_nan Date: Fri, 2 Jul 2021 14:14:56 +0800 Subject: [PATCH] add cancel d.ts Signed-off-by: ma_nan --- api/phone/@ohos.update.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/phone/@ohos.update.d.ts b/api/phone/@ohos.update.d.ts index c781062ea3..0620034b5d 100644 --- a/api/phone/@ohos.update.d.ts +++ b/api/phone/@ohos.update.d.ts @@ -405,6 +405,13 @@ declare namespace update { off(eventType: 'downloadProgress', callback?: UpdateProgressCallback): void; off(eventType: 'upgradeProgress', callback?: UpdateProgressCallback): void; off(eventType: 'verifyProgress', callback?: UpdateProgressCallback): void; + + /** + * cancel download packages for the device. + * + * @since 6 + */ + cancel(): void; } export type UpdateTypes = -- Gitee