mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 06:03:30 +00:00
!8883 新增是否禁止滚动、是否打印网页背景的接口
Merge pull request !8883 from Wanpucheng/master
This commit is contained in:
commit
029f447b34
48
api/@ohos.web.webview.d.ts
vendored
48
api/@ohos.web.webview.d.ts
vendored
@ -3840,6 +3840,54 @@ declare namespace webview {
|
||||
* @since 11
|
||||
*/
|
||||
isIncognitoMode(): boolean;
|
||||
|
||||
/**
|
||||
* Set whether scroll is allowed
|
||||
*
|
||||
* @param { boolean } enable - Set whether scrolling is allowed
|
||||
* @throws { BusinessError } 401 - Invalid input parameter.
|
||||
* @throws { BusinessError } 17100001 - Init error.
|
||||
* The WebviewController must be associated with a Web component.
|
||||
* @syscap SystemCapability.Web.Webview.Core
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
setScrollable(enable: boolean): void;
|
||||
|
||||
/**
|
||||
* Get whether scrolling is allowed.
|
||||
* @returns { boolean } Get scrolling is allowed information.
|
||||
* @throws { BusinessError } 17100001 - Init error.
|
||||
* The WebviewController must be associated with a Web component.
|
||||
* @syscap SystemCapability.Web.Webview.Core
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
getScrollable(): boolean;
|
||||
|
||||
/**
|
||||
* Set whether print web page background.
|
||||
*
|
||||
* @param { boolean } enable - Set whether print web page background
|
||||
* @throws { BusinessError } 401 - Invalid input parameter.
|
||||
* @throws { BusinessError } 17100001 - Init error.
|
||||
* The WebviewController must be associated with a Web component.
|
||||
* @syscap SystemCapability.Web.Webview.Core
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
setPrintBackground(enable: boolean): void;
|
||||
|
||||
/**
|
||||
* Get whether print web page background.
|
||||
* @returns { boolean } Get whether print web page background.
|
||||
* @throws { BusinessError } 17100001 - Init error.
|
||||
* The WebviewController must be associated with a Web component.
|
||||
* @syscap SystemCapability.Web.Webview.Core
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
getPrintBackground(): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user