!9571 ETS add onTouchIntercept interface

Merge pull request !9571 from zhouchaobo/0228_intercept
This commit is contained in:
openharmony_ci 2024-03-07 13:53:58 +00:00 committed by Gitee
commit 9957203d5a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -15904,6 +15904,17 @@ declare class CommonMethod<T> {
* @since 11
*/
monopolizeEvents(monopolize: boolean): T;
/**
* When the component does a touch test, a user-defined callback is triggered.
*
* @param { Callback<TouchEvent, HitTestMode> } callback - A callback instance used when the component does a touch test.
* @returns { T }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 12
*/
onTouchIntercept(callback: Callback<TouchEvent, HitTestMode>): T;
}
/**