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

!20396 modify web docs for Interface abandon

Merge pull request !20396 from 李想/master
...@@ -208,7 +208,6 @@ postMessageEventExt(message: WebMessageExt): void ...@@ -208,7 +208,6 @@ postMessageEventExt(message: WebMessageExt): void
| -------- | ------------------------------------- | | -------- | ------------------------------------- |
| 17100010 | Can not post message using this port. | | 17100010 | Can not post message using this port. |
### onMessageEventExt<sup>10+</sup> ### onMessageEventExt<sup>10+</sup>
onMessageEventExt(callback: (result: WebMessageExt) => void): void onMessageEventExt(callback: (result: WebMessageExt) => void): void
...@@ -4347,7 +4346,6 @@ static saveCookieAsync(callback: AsyncCallback\<void>): void ...@@ -4347,7 +4346,6 @@ static saveCookieAsync(callback: AsyncCallback\<void>): void
| -------- | ---------------------- | ---- | :------------------------------------------------- | | -------- | ---------------------- | ---- | :------------------------------------------------- |
| callback | AsyncCallback\<void> | 是 | callback回调,用于获取cookie是否成功保存。 | | callback | AsyncCallback\<void> | 是 | callback回调,用于获取cookie是否成功保存。 |
**示例:** **示例:**
```ts ```ts
...@@ -5739,7 +5737,6 @@ Web组件返回的请求/响应头对象。 ...@@ -5739,7 +5737,6 @@ Web组件返回的请求/响应头对象。
| ARRAY_BUFFER | 4 |原始二进制数据缓冲区。| | ARRAY_BUFFER | 4 |原始二进制数据缓冲区。|
| ARRAY | 5 |数组类型| | ARRAY | 5 |数组类型|
## WebMessageType<sup>10+</sup> ## WebMessageType<sup>10+</sup>
[webMessagePort](#webmessageport)接口所支持的数据类型。 [webMessagePort](#webmessageport)接口所支持的数据类型。
...@@ -5796,7 +5793,6 @@ getString(): string ...@@ -5796,7 +5793,6 @@ getString(): string
| -------- | ------------------------------------- | | -------- | ------------------------------------- |
| 17100014 | The type does not match with the value of the result. | | 17100014 | The type does not match with the value of the result. |
### getNumber<sup>10+</sup> ### getNumber<sup>10+</sup>
getNumber(): number getNumber(): number
...@@ -5841,7 +5837,6 @@ getBoolean(): boolean ...@@ -5841,7 +5837,6 @@ getBoolean(): boolean
| -------- | ------------------------------------- | | -------- | ------------------------------------- |
| 17100014 | The type does not match with the value of the result. | | 17100014 | The type does not match with the value of the result. |
### getArrayBuffer<sup>10+</sup> ### getArrayBuffer<sup>10+</sup>
getArrayBuffer(): ArrayBuffer getArrayBuffer(): ArrayBuffer
...@@ -5885,7 +5880,6 @@ getArray(): Array\<string | number | boolean\> ...@@ -5885,7 +5880,6 @@ getArray(): Array\<string | number | boolean\>
| -------- | ------------------------------------- | | -------- | ------------------------------------- |
| 17100014 | The type does not match with the value of the result. | | 17100014 | The type does not match with the value of the result. |
## WebMessageExt<sup>10+</sup> ## WebMessageExt<sup>10+</sup>
[webMessagePort](#webmessageport)接口接收、发送的的数据对象。 [webMessagePort](#webmessageport)接口接收、发送的的数据对象。
...@@ -5904,7 +5898,6 @@ getType(): WebMessageType ...@@ -5904,7 +5898,6 @@ getType(): WebMessageType
| --------------| --------------------------------------------------------- | | --------------| --------------------------------------------------------- |
| [WebMessageType](#webmessagetype10) | [webMessagePort](#webmessageport)接口所支持的数据类型。 | | [WebMessageType](#webmessagetype10) | [webMessagePort](#webmessageport)接口所支持的数据类型。 |
### getString<sup>10+</sup> ### getString<sup>10+</sup>
getString(): string getString(): string
...@@ -5927,7 +5920,6 @@ getString(): string ...@@ -5927,7 +5920,6 @@ getString(): string
| -------- | ------------------------------------- | | -------- | ------------------------------------- |
| 17100014 | The type does not match with the value of the web message. | | 17100014 | The type does not match with the value of the web message. |
### getNumber<sup>10+</sup> ### getNumber<sup>10+</sup>
getNumber(): number getNumber(): number
...@@ -5950,7 +5942,6 @@ getNumber(): number ...@@ -5950,7 +5942,6 @@ getNumber(): number
| -------- | ------------------------------------- | | -------- | ------------------------------------- |
| 17100014 | The type does not match with the value of the web message. | | 17100014 | The type does not match with the value of the web message. |
### getBoolean<sup>10+</sup> ### getBoolean<sup>10+</sup>
getBoolean(): boolean getBoolean(): boolean
...@@ -5973,7 +5964,6 @@ getBoolean(): boolean ...@@ -5973,7 +5964,6 @@ getBoolean(): boolean
| -------- | ------------------------------------- | | -------- | ------------------------------------- |
| 17100014 | The type does not match with the value of the web message. | | 17100014 | The type does not match with the value of the web message. |
### getArrayBuffer<sup>10+</sup> ### getArrayBuffer<sup>10+</sup>
getArrayBuffer(): ArrayBuffer getArrayBuffer(): ArrayBuffer
...@@ -6039,7 +6029,6 @@ getError(): Error ...@@ -6039,7 +6029,6 @@ getError(): Error
| -------- | ------------------------------------- | | -------- | ------------------------------------- |
| 17100014 | The type does not match with the value of the web message. | | 17100014 | The type does not match with the value of the web message. |
### setType<sup>10+</sup> ### setType<sup>10+</sup>
setType(type: WebMessageType): void setType(type: WebMessageType): void
...@@ -6180,7 +6169,6 @@ setError(message: Error): void ...@@ -6180,7 +6169,6 @@ setError(message: Error): void
| -------- | ------------------------------------- | | -------- | ------------------------------------- |
| 17100014 | The type does not match with the value of the web message. | | 17100014 | The type does not match with the value of the web message. |
## WebStorageOrigin ## WebStorageOrigin
提供Web SQL数据库的使用信息。 提供Web SQL数据库的使用信息。
......
...@@ -670,12 +670,16 @@ verticalScrollBarAccess(verticalScrollBar: boolean) ...@@ -670,12 +670,16 @@ verticalScrollBarAccess(verticalScrollBar: boolean)
</html> </html>
``` ```
### password ### password<sup>(deprecated)</sup>
password(password: boolean) password(password: boolean)
设置是否应保存密码。该接口为空接口。 设置是否应保存密码。该接口为空接口。
> **说明:**
>
> 从API version 10开始废弃,并且不再提供新的接口作为替代。
### cacheMode ### cacheMode
cacheMode(cacheMode: CacheMode) cacheMode(cacheMode: CacheMode)
...@@ -991,7 +995,6 @@ minLogicalFontSize(size: number) ...@@ -991,7 +995,6 @@ minLogicalFontSize(size: number)
} }
``` ```
### webFixedFont<sup>9+</sup> ### webFixedFont<sup>9+</sup>
webFixedFont(family: string) webFixedFont(family: string)
...@@ -1242,18 +1245,26 @@ forceDarkAccess(access: boolean) ...@@ -1242,18 +1245,26 @@ forceDarkAccess(access: boolean)
} }
``` ```
### tableData ### tableData<sup>(deprecated)</sup>
tableData(tableData: boolean) tableData(tableData: boolean)
设置是否应保存表单数据。该接口为空接口。 设置是否应保存表单数据。该接口为空接口。
### wideViewModeAccess > **说明:**
>
> 从API version 10开始废弃,并且不再提供新的接口作为替代。
### wideViewModeAccess<sup>(deprecated)</sup>
wideViewModeAccess(wideViewModeAccess: boolean) wideViewModeAccess(wideViewModeAccess: boolean)
设置web是否支持html中meta标签的viewport属性。该接口为空接口。 设置web是否支持html中meta标签的viewport属性。该接口为空接口。
> **说明:**
>
> 从API version 10开始废弃,并且不再提供新的接口作为替代。
### pinchSmooth<sup>9+</sup> ### pinchSmooth<sup>9+</sup>
pinchSmooth(isEnabled: boolean) pinchSmooth(isEnabled: boolean)
...@@ -1384,7 +1395,6 @@ mediaOptions(options: WebMediaOptions) ...@@ -1384,7 +1395,6 @@ mediaOptions(options: WebMediaOptions)
**示例:** **示例:**
```ts ```ts
// xxx.ets // xxx.ets
import web_webview from '@ohos.web.webview' import web_webview from '@ohos.web.webview'
...@@ -1939,7 +1949,6 @@ onHttpErrorReceive(callback: (event?: { request: WebResourceRequest, response: W ...@@ -1939,7 +1949,6 @@ onHttpErrorReceive(callback: (event?: { request: WebResourceRequest, response: W
onPageBegin(callback: (event?: { url: string }) => void) onPageBegin(callback: (event?: { url: string }) => void)
网页开始加载时触发该回调,且只在主frame触发,iframe或者frameset的内容加载时不会触发此回调。 网页开始加载时触发该回调,且只在主frame触发,iframe或者frameset的内容加载时不会触发此回调。
**参数:** **参数:**
...@@ -1974,7 +1983,6 @@ onPageBegin(callback: (event?: { url: string }) => void) ...@@ -1974,7 +1983,6 @@ onPageBegin(callback: (event?: { url: string }) => void)
onPageEnd(callback: (event?: { url: string }) => void) onPageEnd(callback: (event?: { url: string }) => void)
网页加载完成时触发该回调,且只在主frame触发。 网页加载完成时触发该回调,且只在主frame触发。
**参数:** **参数:**
...@@ -3668,7 +3676,6 @@ Web组件返回的请求/响应头对象。 ...@@ -3668,7 +3676,6 @@ Web组件返回的请求/响应头对象。
| headerKey | string | 请求/响应头的key。 | | headerKey | string | 请求/响应头的key。 |
| headerValue | string | 请求/响应头的value。 | | headerValue | string | 请求/响应头的value。 |
## WebResourceResponse ## WebResourceResponse
web组件资源响应对象。示例代码参考[onHttpErrorReceive事件](#onhttperrorreceive) web组件资源响应对象。示例代码参考[onHttpErrorReceive事件](#onhttperrorreceive)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册