openharmony 鸿蒙 arkts-apis-webview-PrefetchOptions

2026-08-25 浏览 (1)

Class (PrefetchOptions)

Defines the prefetch behavior of web pages, including whether to ignore Cache-Control: no-store in the response header and the minimum interval between two prefetches.

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 21.

  • The sample effect is subject to the actual device.

Attributes

System capability: SystemCapability.Web.Webview.Core

NameTypeRead-OnlyOptionalDescription
minTimeBetweenPrefetchesMs21+numberNoNoMinimum interval between two web page prefetches.
The interval between two web page prefetches is calculated. If it is less than the specified value, the current prefetch is canceled.
The default value is 500, and the maximum value is 500.
If the value is set to a negative number, the default value 0 is used.
Unit: ms.
ignoreCacheControlNoStore21+booleanNoNoWhether to ignore Cache-Control: no-store in the response header.
Default value: false.
The value true means to ignore Cache-Control: no-store in the response header, and false means the opposite.

constructor21+

constructor()

A constructor used to create a PrefetchOptions instance.

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/ru8SNQUI