未验证 提交 a6d40e4e 编写于 作者: O openharmony_ci 提交者: Gitee

!13318 修复webview资料问题(beta4)

Merge pull request !13318 from Ted/OpenHarmony-3.2-Beta4
...@@ -1756,7 +1756,7 @@ struct WebComponent { ...@@ -1756,7 +1756,7 @@ struct WebComponent {
getTitle(): string getTitle(): string
获取文件选择器标题。 获取当前网页的标题。
**系统能力:** SystemCapability.Web.Webview.Core **系统能力:** SystemCapability.Web.Webview.Core
...@@ -1764,7 +1764,7 @@ getTitle(): string ...@@ -1764,7 +1764,7 @@ getTitle(): string
| 类型 | 说明 | | 类型 | 说明 |
| ------ | -------------------- | | ------ | -------------------- |
| string | 返回文件选择器标题。 | | string | 当前网页的标题。 |
**错误码:** **错误码:**
...@@ -3237,7 +3237,7 @@ struct WebComponent { ...@@ -3237,7 +3237,7 @@ struct WebComponent {
@Component @Component
struct WebComponent { struct WebComponent {
controller: WebController = new WebController(); controller: WebController = new WebController();
webAsyncController: WebAsyncController = new web_webview.WebAsyncController(this.controller) webAsyncController: web_webview.WebAsyncController = new web_webview.WebAsyncController(this.controller)
build() { build() {
Column() { Column() {
Web({ src: 'www.example.com', controller: this.controller }) Web({ src: 'www.example.com', controller: this.controller })
......
...@@ -467,13 +467,13 @@ geolocationAccess(geolocationAccess: boolean) ...@@ -467,13 +467,13 @@ geolocationAccess(geolocationAccess: boolean)
mediaPlayGestureAccess(access: boolean) mediaPlayGestureAccess(access: boolean)
设置视频播放是否需要用户手动点击 设置有声视频播放是否需要用户手动点击,静音视频播放不受该接口管控
**参数:** **参数:**
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| ------ | ------- | ---- | ---- | ----------------- | | ------ | ------- | ---- | ---- | ----------------- |
| access | boolean | 是 | true | 设置视频播放是否需要用户手动点击。 | | access | boolean | 是 | true | 设置有声视频播放是否需要用户手动点击。 |
**示例:** **示例:**
...@@ -2613,7 +2613,7 @@ grant(resources: Array\<string\>): void ...@@ -2613,7 +2613,7 @@ grant(resources: Array\<string\>): void
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| --------- | --------------- | ---- | ---- | ------------- | | --------- | --------------- | ---- | ---- | ------------- |
| resources | Array\<string\> | 是 | - | 网页所请求的权限资源列表。 | | resources | Array\<string\> | 是 | - | 授予网页请求的权限的资源列表。 |
## WebContextMenuParam<sup>9+</sup> ## WebContextMenuParam<sup>9+</sup>
...@@ -4141,7 +4141,7 @@ getCookie(url: string): string ...@@ -4141,7 +4141,7 @@ getCookie(url: string): string
Column() { Column() {
Button('getCookie') Button('getCookie')
.onClick(() => { .onClick(() => {
let value = webview.WebCookieManager.getCookie('www.example.com') let value = web_webview.WebCookieManager.getCookie('www.example.com')
console.log("value: " + value) console.log("value: " + value)
}) })
Web({ src: 'www.example.com', controller: this.controller }) Web({ src: 'www.example.com', controller: this.controller })
...@@ -4513,7 +4513,7 @@ deleteSessionCookie(): void ...@@ -4513,7 +4513,7 @@ deleteSessionCookie(): void
Column() { Column() {
Button('deleteSessionCookie') Button('deleteSessionCookie')
.onClick(() => { .onClick(() => {
webview.WebCookieManager.deleteSessionCookie() web_webview.WebCookieManager.deleteSessionCookie()
}) })
Web({ src: 'www.example.com', controller: this.controller }) Web({ src: 'www.example.com', controller: this.controller })
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册