diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index f3865eae0f5333f47aec35470401abbcb0ca2b72..cd6bdcf3807f2206b005b7803addff49deeb26ca 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; } }