From 5a9dc89049652865b14a9201dad27bc047d522f2 Mon Sep 17 00:00:00 2001 From: liujixin Date: Fri, 4 Jul 2025 10:08:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E6=A8=A1=E5=9D=97=E8=A1=A5?= =?UTF-8?q?=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liujixin --- .../apis-arkweb/arkts-apis-webview-AdsBlockManager.md | 6 ++++++ .../apis-arkweb/arkts-apis-webview-BackForwardList.md | 6 ++++++ .../arkts-apis-webview-GeolocationPermissions.md | 6 ++++++ .../apis-arkweb/arkts-apis-webview-ProxyController.md | 6 ++++++ .../apis-arkweb/arkts-apis-webview-WebCookieManager.md | 6 ++++++ .../reference/apis-arkweb/arkts-apis-webview-WebDataBase.md | 6 ++++++ .../apis-arkweb/arkts-apis-webview-WebDownloadDelegate.md | 6 ++++++ .../apis-arkweb/arkts-apis-webview-WebDownloadItem.md | 6 ++++++ .../apis-arkweb/arkts-apis-webview-WebDownloadManager.md | 6 ++++++ .../apis-arkweb/arkts-apis-webview-WebHttpBodyStream.md | 6 ++++++ .../apis-arkweb/arkts-apis-webview-WebMessagePort.md | 6 ++++++ .../apis-arkweb/arkts-apis-webview-WebSchemeHandler.md | 6 ++++++ .../arkts-apis-webview-WebSchemeHandlerResponse.md | 6 ++++++ .../reference/apis-arkweb/arkts-apis-webview-WebStorage.md | 6 ++++++ .../apis-arkweb/arkts-apis-webview-WebviewController.md | 6 ++++++ .../reference/apis-arkweb/arkts-apis-webview-f.md | 6 ++++++ 16 files changed, 96 insertions(+) diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-AdsBlockManager.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-AdsBlockManager.md index 8b45f973f79..692a38f8176 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-AdsBlockManager.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-AdsBlockManager.md @@ -10,6 +10,12 @@ > > - 静态方法必须在用户界面(UI)线程上使用。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## setAdsBlockRules12+ static setAdsBlockRules(rulesFile: string, replace: boolean): void diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-BackForwardList.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-BackForwardList.md index deabba72928..90ca3b98061 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-BackForwardList.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-BackForwardList.md @@ -8,6 +8,12 @@ > > - 示例效果请以真机运行为准,当前DevEco Studio预览器不支持。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## 属性 **系统能力:** SystemCapability.Web.Webview.Core diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-GeolocationPermissions.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-GeolocationPermissions.md index 939c9c57ed0..71365f350b0 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-GeolocationPermissions.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-GeolocationPermissions.md @@ -10,6 +10,12 @@ Web组件地理位置权限管理对象。 > > - 目前调用GeolocationPermissions下的方法,都需要先加载Web组件。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## 需要权限 访问地理位置时需添加权限:ohos.permission.LOCATION、ohos.permission.APPROXIMATELY_LOCATION、ohos.permission.LOCATION_IN_BACKGROUND,具体权限说明请参考[位置服务](../apis-location-kit/js-apis-geolocation.md)。 diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-ProxyController.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-ProxyController.md index 3543be5119c..3ac80028ec8 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-ProxyController.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-ProxyController.md @@ -8,6 +8,12 @@ > > - 示例效果请以真机运行为准,当前DevEco Studio预览器不支持。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## applyProxyOverride15+ static applyProxyOverride(proxyConfig: ProxyConfig, callback: OnProxyConfigChangeCallback): void diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebCookieManager.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebCookieManager.md index d645a23c709..9fc04bf69f1 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebCookieManager.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebCookieManager.md @@ -10,6 +10,12 @@ > > - 静态方法必须在用户界面(UI)线程上使用。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## fetchCookieSync11+ static fetchCookieSync(url: string, incognito?: boolean): string diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDataBase.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDataBase.md index 340541fae42..8f172e2e736 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDataBase.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDataBase.md @@ -10,6 +10,12 @@ Web组件数据库管理对象。 > > - 目前调用WebDataBase下的方法,都需要先加载Web组件。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## getHttpAuthCredentials static getHttpAuthCredentials(host: string, realm: string): Array\ diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDownloadDelegate.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDownloadDelegate.md index 60ec84eb245..72c29ffa605 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDownloadDelegate.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDownloadDelegate.md @@ -8,6 +8,12 @@ > > - 示例效果请以真机运行为准,当前DevEco Studio预览器不支持。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## onBeforeDownload11+ onBeforeDownload(callback: Callback\): void diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDownloadItem.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDownloadItem.md index 488651d65b0..462a346481f 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDownloadItem.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDownloadItem.md @@ -10,6 +10,12 @@ > > - 在下载过程中,下载的进程会通过WebDownloadDelegate通知给使用者,使用者可以通过参数WebDownloadItem来操作下载任务。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## getGuid11+ getGuid(): string diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDownloadManager.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDownloadManager.md index a1d88716889..472cfea2e9c 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDownloadManager.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebDownloadManager.md @@ -8,6 +8,12 @@ > > - 示例效果请以真机运行为准,当前DevEco Studio预览器不支持。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## setDownloadDelegate11+ static setDownloadDelegate(delegate: WebDownloadDelegate): void diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebHttpBodyStream.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebHttpBodyStream.md index d5a14c2012a..9bc7975d73d 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebHttpBodyStream.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebHttpBodyStream.md @@ -8,6 +8,12 @@ POST、PUT请求的数据体,支持BYTES、FILE、BLOB、CHUNKED类型的数 > > - 示例效果请以真机运行为准,当前DevEco Studio预览器不支持。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## initialize12+ initialize(): Promise\ diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebMessagePort.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebMessagePort.md index 45f31715041..f48922f3789 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebMessagePort.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebMessagePort.md @@ -8,6 +8,12 @@ > > - 示例效果请以真机运行为准,当前DevEco Studio预览器不支持。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## 属性 **系统能力:** SystemCapability.Web.Webview.Core diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebSchemeHandler.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebSchemeHandler.md index d85e45ba588..6de67c39103 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebSchemeHandler.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebSchemeHandler.md @@ -8,6 +8,12 @@ > > - 示例效果请以真机运行为准,当前DevEco Studio预览器不支持。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## onRequestStart12+ onRequestStart(callback: (request: WebSchemeHandlerRequest, handler: WebResourceHandler) => boolean): void diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebSchemeHandlerResponse.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebSchemeHandlerResponse.md index 2183f3bb1d7..69d844fc79b 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebSchemeHandlerResponse.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebSchemeHandlerResponse.md @@ -8,6 +8,12 @@ > > - 示例效果请以真机运行为准,当前DevEco Studio预览器不支持。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## constructor12+ constructor() diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebStorage.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebStorage.md index e6ee95e3473..2b27587b726 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebStorage.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebStorage.md @@ -10,6 +10,12 @@ > > - 目前调用WebStorage下的方法,都需要先加载Web组件。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## deleteOrigin static deleteOrigin(origin: string): void diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebviewController.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebviewController.md index d6915f3c97b..1e9cd190121 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebviewController.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-WebviewController.md @@ -8,6 +8,12 @@ > > - 示例效果请以真机运行为准,当前DevEco Studio预览器不支持。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## constructor11+ constructor(webTag?: string) diff --git a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-f.md b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-f.md index 8826e5e7c30..06d64c26eae 100644 --- a/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-f.md +++ b/zh-cn/application-dev/reference/apis-arkweb/arkts-apis-webview-f.md @@ -6,6 +6,12 @@ > > - 示例效果请以真机运行为准,当前DevEco Studio预览器不支持。 +## 导入模块 + +```ts +import { webview } from '@kit.ArkWeb'; +``` + ## webview.once once(type: string, callback: Callback\): void -- Gitee