diff --git a/api/@internal/component/ets/rich_editor.d.ts b/api/@internal/component/ets/rich_editor.d.ts index c72bd988b..460942064 100644 --- a/api/@internal/component/ets/rich_editor.d.ts +++ b/api/@internal/component/ets/rich_editor.d.ts @@ -1843,6 +1843,17 @@ declare interface RichEditorGesture { * @since 12 */ onLongPress?: Callback; + + /** + * Trigger a gesture event when a double click event is complete. + * + * @type { ?Callback } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @systemapi + * @since 14 + */ + onDoubleClick?: Callback; } /** @@ -2030,6 +2041,17 @@ declare interface RichEditorImageSpanOptions { * @since 12 */ gesture?: RichEditorGesture; + + /** + * RichEditor onHover. + * + * @type { ?OnHoverCallback } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 14 + */ + onHover?: OnHoverCallback; } /** @@ -3854,6 +3876,19 @@ declare type MenuOnAppearCallback = (start: number, end: number) => void; */ declare type PasteEventCallback = (event?: PasteEvent) => void; +/** + * callback of the on hover event. + * + * @typedef { function } OnHoverCallback + * @param { boolean } status - The hover status + * @param { HoverEvent } event - The event info for hover. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 14 + */ +declare type OnHoverCallback = (status: boolean, event: HoverEvent) => void; + /** * Provides an interface for writing texts. *