diff --git a/api/phone/@ohos.update.d.ts b/api/phone/@ohos.update.d.ts index c781062ea3beb670d22d16e770c48516f2570824..0620034b5dd6b219688839ad75fd9a8f9f577281 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 =