From f6c33abffbd880045e17d2161717800141d62bc8 Mon Sep 17 00:00:00 2001 From: defeng2020 Date: Wed, 28 Dec 2022 08:40:02 +0000 Subject: [PATCH] add pinchmode and reposonse fd Signed-off-by: defeng2020 --- api/@internal/component/ets/web.d.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index dba83566..4a83a979 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -1072,7 +1072,7 @@ declare class WebResourceRequest { * * @since 9 */ - setResponseData(data: string); + setResponseData(data: string | number); /** * Sets the response encoding. @@ -1113,6 +1113,14 @@ declare class WebResourceRequest { * @since 9 */ setResponseCode(code: number); + + /** + * Sets the response is ready or not. + * @param IsReady whether the response is ready. + * + * @since 9 + */ + setResponseIsReady(IsReady: boolean); } /** @@ -2258,6 +2266,13 @@ declare class WebAttribute extends CommonMethod { * @since 9 */ onDataResubmitted(callback: (event: {handler: DataResubmissionHandler}) => void): WebAttribute; + + /** + * Set whether enable pinch smooth mode. + * @param isEnabled True if it needs to enable smooth mode. + * @since 9 + */ + pinchSmooth(isEnabled: boolean) } declare const Web: WebInterface; -- Gitee