diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index 60f1bda3e006f5f9cb659fe024e5f3428be5b87f..dee36ff9ab36f9c520514cab024cd44672a5b71d 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -6719,11 +6719,22 @@ declare namespace webview { * * @param { BackForwardCacheSupportedFeatures } features - The features that supports BackForwardCache. * @syscap SystemCapability.Web.Webview.Core - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ static enableBackForwardCache(features: BackForwardCacheSupportedFeatures): void; + /** + * Enable the BackForwardCache and indicate features that are allowed to enter BackForwardCache. + * Default is disabled. + * + * @param { BackForwardCacheSupportedFeatures } [features] - The features that supports BackForwardCache. + * @static + * @syscap SystemCapability.Web.Webview.Core + * @since 20 + * @arkts 1.2 + */ + static enableBackForwardCache(features?: BackForwardCacheSupportedFeatures): void; + /** * Configure the BackForwardCache. * @@ -6731,11 +6742,22 @@ declare namespace webview { * @throws { BusinessError } 17100001 - Init error. * The WebviewController must be associated with a Web component. * @syscap SystemCapability.Web.Webview.Core - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ setBackForwardCacheOptions(options: BackForwardCacheOptions): void; + /** + * Configure the BackForwardCache. + * + * @param { BackForwardCacheOptions } [options] - The configuration of BackForwardCache. + * @throws { BusinessError } 17100001 - Init error. + * The WebviewController must be associated with a Web component. + * @syscap SystemCapability.Web.Webview.Core + * @since 20 + * @arkts 1.2 + */ + setBackForwardCacheOptions(options?: BackForwardCacheOptions): void; + /** * Get the scroll offset of the webpage in view port, the coordinates of the top left corner of the view port are X: 0, Y: 0. * And the unit is virtual pixel.