!13693 Web组件增加振动开关接口

Merge pull request !13693 from lanshouren/work_0827
This commit is contained in:
openharmony_ci 2024-09-05 03:51:26 +00:00 committed by Gitee
commit 9664094f4c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -8526,6 +8526,16 @@ declare class WebAttribute extends CommonMethod<WebAttribute> {
* @since 12
*/
editMenuOptions(editMenu: EditMenuOptions): WebAttribute;
/**
* Enable or disable haptic feedback.
*
* @param { boolean } enabled - Default value is true, set false to disable haptic feedback.
* @returns { WebAttribute }
* @syscap SystemCapability.Web.Webview.Core
* @since 13
*/
enableHapticFeedback(enabled: boolean): WebAttribute;
}
/**