openharmony 鸿蒙 arkts-apis-webview-BackForwardCacheSupportedFeatures

2026-08-25 浏览 (1)

Class (BackForwardCacheSupportedFeatures)

Implements a BackForwardCacheSupportedFeatures object to allow a page that uses any of the following features to enter the back-forward cache. For details about the sample code, see enableBackForwardCache.

NOTE

  • The initial APIs of this module are supported since API version 9. Updates will be marked with a superscript to indicate their earliest API version.

  • The initial APIs of this class are supported since API version 12.

  • The sample effect is subject to the actual device.

Attributes

System capability: SystemCapability.Web.Webview.Core

NameTypeRead-OnlyOptionalDescription
nativeEmbed12+booleanNoNoWhether to allow the page that uses same-layer rendering to enter the back-forward cache.
When the value is set to true, you need to maintain the lifecycle of system components created for the same-layer rendering elements to avoid resource leak.
The value true means to allow the page that uses same-layer rendering to enter the back-forward cache, and false means the opposite.
Default value: false.
mediaTakeOver12+booleanNoNoWhether to allow a page using the media playback takeover feature to the back-forward cache.
When the value is set to true, you need to maintain the lifecycle of system components created for video elements to avoid resource leak.
The value true means to allow a page using the media playback takeover feature to enter the back-forward cache, and false means the opposite.
Default value: false.

constructor12+

constructor()

Constructs a BackForwardCacheSupportedFeatures object.

System capability: SystemCapability.Web.Webview.Core

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 arkts-apis-webview-WebviewController

openharmony 鸿蒙 arkts-apis-webview-t

openharmony 鸿蒙 arkts-apis-webview

openharmony 鸿蒙 capi-arkweb-type-h

openharmony 鸿蒙 arkts-basic-components-web-FullScreenExitHandler

openharmony 鸿蒙 arkts-apis-webview-WebDownloadManager

openharmony 鸿蒙 arkts-basic-components-web-VerifyPinHandler

openharmony 鸿蒙 capi-web-arkweb-webmessage8h

openharmony 鸿蒙 arkts-apis-webview-NativeMediaPlayerHandler

openharmony 鸿蒙 capi-web-arkweb-proxymethodwithresult

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/rOH7ZBtp