From 34b54214642cdfebdb2950f223e91998b59f0163 Mon Sep 17 00:00:00 2001 From: ma_nan Date: Fri, 2 Jul 2021 11:49:19 +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