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 8b45f973f79a3739db74b5fd9868dc657c2b0c0f..692a38f8176b129cd5168b6d62ed2a7ffbb8987c 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 deabba7292846d8c04fb616e662f71ea59f1e1ba..90ca3b980617a96f3c95f93f3cd9254fc16bf945 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 939c9c57ed0e75ec35bb9389b0b7f4701b28ae3f..71365f350b072c564b925d74419000ee2779d23d 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 3543be5119c7eefe5d175287983fc58883575255..3ac80028ec8362530f85d2693a60b2209a6358b6 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 d645a23c709fd043ae525bc9ce511415c12666de..9fc04bf69f11476c705e00ac2668468ff8e81c41 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 340541fae428ad6929f1c3c943e4544d9f021019..8f172e2e736c2f7d03ba4b865f9996c13e2e8f9e 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 60ec84eb245c398f19b3f6a4889d5435b2adc72b..72c29ffa605946175e1b845c01cbdd42c78e8143 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 488651d65b017c79bc0d2dc4595373312c6b3c7d..462a346481f181152fc986c7fd473513632f5114 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 a1d8871688916916e25c014d48b3fb97fbbe2690..472cfea2e9cf3c3433a1a7bfd3161aca2ad35a5f 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 d5a14c2012adaf57ae32b5a3400e532a77a2f69e..9bc7975d73d2e50c9451a37938a56c8c7adda044 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 45f317150414e3f3fac7ef4c5862aa1e6b8287ef..f48922f378976ba96d9ff876899508623b4ae32f 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 d85e45ba588a37ad8176aaaff56b53ed22f10f4b..6de67c391030a10130a4651092eda1be43cebf5f 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 2183f3bb1d79fcc23350ac7120874f0090aedfc8..69d844fc79b500c78b47edb9cdb65a36e747bf2d 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 e6ee95e34730d270f335225b19bc581676772680..2b27587b726afd1026fc03c9b0532f49c6c446a6 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 d6915f3c97baccb6fd149c04b82681c4db1a9a6c..1e9cd1901210acfb303753bd92bbd3f93bed37be 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 8826e5e7c309a6bf167878ee865d26f2cecd2562..06d64c26eae9402c08a014f6049e9023d24c87ba 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