diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index fbe431d7b12ea2b4f05ddd72a77d88272d824bf9..9d45b53a80d877d7d28e092237cc03115ca3d531 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -17076,6 +17076,19 @@ declare class CommonMethod { */ onAccessibilityHover(callback: AccessibilityCallback): T; + /** + * prompt for current component and descendants unable to handle accessibility hover event + * + * @param { AccessibilityTransparentCallback } callback - A callback instance used when current component and + * descendants not handled accessibility hover event + * @returns { T } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + onAccessibilityHoverTransparent(callback: AccessibilityTransparentCallback): T; + /** * Set hover effect. * @@ -24694,6 +24707,18 @@ declare type HoverCallback = (isHover: boolean, event: HoverEvent) => void */ declare type AccessibilityCallback = (isHover: boolean, event: AccessibilityHoverEvent) => void; +/** + * Defines the callback type used in accessibility hover transparent event. + * + * @typedef { function } AccessibilityTransparentCallback + * @param { TouchEvent } event - The value of event contains information about original accessibility hover event. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ +declare type AccessibilityTransparentCallback = (event: TouchEvent) => void + /** * Defines the options about VisibleAreaEvent. * diff --git a/api/@internal/component/ets/enums.d.ts b/api/@internal/component/ets/enums.d.ts index 3d750f611ddb5b533acc7038cbb715d43e05ed19..5fa6cf59eeb6fee7951324c9b5827753182a07ff 100644 --- a/api/@internal/component/ets/enums.d.ts +++ b/api/@internal/component/ets/enums.d.ts @@ -1278,6 +1278,46 @@ declare enum TouchType { * @since 11 */ Cancel, + + /** + * Triggers when the touch event turns to hover enter in accessibility processing. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + HOVER_ENTER = 9, + + /** + * Triggers when the touch event turns to hover move in accessibility processing. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + HOVER_MOVE = 10, + + /** + * Triggers when the touch event turns to hover exit in accessibility processing. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + HOVER_EXIT = 11, + + /** + * Triggers when the touch event turns to hover cancel in accessibility processing. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + HOVER_CANCEL = 12, } /**