接口默认值维护

Signed-off-by: 李景杰 <lijingjie4@h-partners.com>
This commit is contained in:
李景杰 2024-11-15 18:35:11 +08:00
parent 8afb332464
commit 3868707de8

View File

@ -6267,26 +6267,29 @@ declare interface SelectionMenuOptionsExt {
*/
declare class WebAttribute extends CommonMethod<WebAttribute> {
/**
* Sets whether the Web allows JavaScript scripts to execute. The default value is true.
* Sets whether the Web allows JavaScript scripts to execute.
*
* @param { boolean } javaScriptAccess - {@code true} means the Web can allows JavaScript scripts to execute; {@code false} otherwise.
* The default value is true.
* @returns { WebAttribute }
* @syscap SystemCapability.Web.Webview.Core
* @since 8
*/
/**
* Sets whether the Web allows JavaScript scripts to execute. The default value is true.
* Sets whether the Web allows JavaScript scripts to execute.
*
* @param { boolean } javaScriptAccess - {@code true} means the Web can allows JavaScript scripts to execute; {@code false} otherwise.
* The default value is true.
* @returns { WebAttribute }
* @syscap SystemCapability.Web.Webview.Core
* @crossplatform
* @since 10
*/
/**
* Sets whether the Web allows JavaScript scripts to execute. The default value is true.
* Sets whether the Web allows JavaScript scripts to execute.
*
* @param { boolean } javaScriptAccess - {@code true} means the Web can allows JavaScript scripts to execute; {@code false} otherwise.
* The default value is true.
* @returns { WebAttribute }
* @syscap SystemCapability.Web.Webview.Core
* @crossplatform
@ -6296,26 +6299,29 @@ declare class WebAttribute extends CommonMethod<WebAttribute> {
javaScriptAccess(javaScriptAccess: boolean): WebAttribute;
/**
* Sets whether enable local file system access in Web. The default value is true.
* Sets whether enable local file system access in Web.
*
* @param { boolean } fileAccess - {@code true} means enable local file system access in Web; {@code false} otherwise.
* The default value is true.
* @returns { WebAttribute }
* @syscap SystemCapability.Web.Webview.Core
* @since 8
*/
/**
* Sets whether enable local file system access in Web. The default value is true.
* Sets whether enable local file system access in Web.
*
* @param { boolean } fileAccess - {@code true} means enable local file system access in Web; {@code false} otherwise.
* The default value is true.
* @returns { WebAttribute }
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
* @since 11
*/
/**
* Sets whether enable local file system access in Web. The default value is false.
* Sets whether enable local file system access in Web.
*
* @param { boolean } fileAccess - {@code true} means enable local file system access in Web; {@code false} otherwise.
* The default value is false.
* @returns { WebAttribute }
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
@ -6345,17 +6351,19 @@ declare class WebAttribute extends CommonMethod<WebAttribute> {
onlineImageAccess(onlineImageAccess: boolean): WebAttribute;
/**
* Sets whether to enable the DOM Storage API permission. The default value is false.
* Sets whether to enable the DOM Storage API permission.
*
* @param { boolean } domStorageAccess - {@code true} means enable the DOM Storage API permission in Web; {@code false} otherwise.
* The default value is false.
* @returns { WebAttribute }
* @syscap SystemCapability.Web.Webview.Core
* @since 8
*/
/**
* Sets whether to enable the DOM Storage API permission. The default value is false.
* Sets whether to enable the DOM Storage API permission.
*
* @param { boolean } domStorageAccess - {@code true} means enable the DOM Storage API permission in Web; {@code false} otherwise.
* The default value is false.
* @returns { WebAttribute }
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
@ -6364,17 +6372,19 @@ declare class WebAttribute extends CommonMethod<WebAttribute> {
domStorageAccess(domStorageAccess: boolean): WebAttribute;
/**
* Sets whether the Web can automatically load image resources. The default value is true.
* Sets whether the Web can automatically load image resources.
*
* @param { boolean } imageAccess - {@code true} means the Web can automatically load image resources; {@code false} otherwise.
* The default value is true.
* @returns { WebAttribute }
* @syscap SystemCapability.Web.Webview.Core
* @since 8
*/
/**
* Sets whether the Web can automatically load image resources. The default value is true.
* Sets whether the Web can automatically load image resources.
*
* @param { boolean } imageAccess - {@code true} means the Web can automatically load image resources; {@code false} otherwise.
* The default value is true.
* @returns { WebAttribute }
* @syscap SystemCapability.Web.Webview.Core
* @atomicservice
@ -6431,17 +6441,19 @@ declare class WebAttribute extends CommonMethod<WebAttribute> {
zoomAccess(zoomAccess: boolean): WebAttribute;
/**
* Sets whether to allow access to geographical locations. The default value is true.
* Sets whether to allow access to geographical locations.
*
* @param { boolean } geolocationAccess - {@code true} means the Web allows access to geographical locations; {@code false} otherwise.
* The default value is true.
* @returns { WebAttribute }
* @syscap SystemCapability.Web.Webview.Core
* @since 8
*/
/**
* Sets whether to allow access to geographical locations. The default value is true.
* Sets whether to allow access to geographical locations.
*
* @param { boolean } geolocationAccess - {@code true} means the Web allows access to geographical locations; {@code false} otherwise.
* The default value is true.
* @returns { WebAttribute }
* @syscap SystemCapability.Web.Webview.Core
* @crossplatform