From 3ccf4022fe067ec2e7f78d9595d609270aa8a55a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=96=8C?= Date: Thu, 29 Dec 2022 09:01:58 +0000 Subject: [PATCH] update api/@ohos.web.webview.d.ts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 徐斌 --- api/@ohos.web.webview.d.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index f3865eae..cd6bdcf3 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -1113,6 +1113,28 @@ declare namespace webview { * @since 9 */ slideScroll(vx:number, vy:number): void; + + /** + * Serialize the access stack of the web, that is, the history of access. + * + * @throws { BusinessError } 17100001 - Init error. + * The WebviewController must be associated with a Web component. + * @returns { Uint8Array } Web access stack after serialization. + * + * @since 9 + */ + serializeWebState() : Uint8Array; + + /** + * Restoring the web access stack, that is, the history of access. + * + * @param { Uint8Array } state - Web access stack after serialization. + * @throws { BusinessError } 401 - Invalid input parameter. + * @throws { BusinessError } 17100001 - Init error. + * The WebviewController must be associated with a Web component. + * @since 9 + */ + restoreWebState(state: Uint8Array) : void; } } -- Gitee