From 6da9902b39d84ce9dfe9ca856c51319ae33ac733 Mon Sep 17 00:00:00 2001 From: liujinwei Date: Mon, 14 Feb 2022 12:59:22 +0800 Subject: [PATCH] add interface into web Signed-off-by: liujinwei Change-Id: Id5cda6a8ce8fb2f78d236e9a34f5050aa94e8947 --- api/@internal/component/ets/web.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index 00ea08058b..6d9dceef93 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -309,6 +309,12 @@ declare class WebAttribute extends CommonMethod { */ onHttpErrorReceive(callback: (event?: {request: WebResourceRequest, error: WebResourceError}) => void): WebAttribute; + /** + * Triggered when download start + * @since 8 + */ + onDownloadStart(callback: (event?: {url: string, userAgent: string, contentDisposition: string, mimetype: string, contentLength: number}) => void): WebAttribute; + /** * Just use for genetate tsbundle * @ignore ide should ignore this arrtibute -- Gitee