From b18790641d3e4b2909577cac70c098d0d90268f3 Mon Sep 17 00:00:00 2001 From: zhouchaobo Date: Tue, 27 May 2025 19:05:00 +0800 Subject: [PATCH] strengthenBase gesture interface modify Signed-off-by: zhouchaobo --- api/@internal/component/ets/common.d.ts | 16 ++++++++++++++-- api/@internal/component/ets/gesture.d.ts | 9 +++++---- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index fa1352b582..690f8210bd 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -11149,11 +11149,23 @@ declare interface BaseEvent { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ timestamp: number; + /** + * Event timestamp. + * + * @type { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + timestamp: long; + /** * the event source info. * diff --git a/api/@internal/component/ets/gesture.d.ts b/api/@internal/component/ets/gesture.d.ts index 9cbc52b43f..7179191d87 100644 --- a/api/@internal/component/ets/gesture.d.ts +++ b/api/@internal/component/ets/gesture.d.ts @@ -21,6 +21,7 @@ /*** if arkts 1.2 */ import { BaseEvent, SourceTool, Callback } from './common' import { InteractionHand } from './enums' +import { VoidCallback } from './units'; /*** endif */ /** @@ -3709,14 +3710,14 @@ export declare class GestureGroup { /** * The Gesture group is successfully recognized and a callback is triggered when the touch cancel event is received. * - * @param { Callback } event + * @param { VoidCallback } event * @returns { GestureGroup } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 */ - onCancel(event: Callback): GestureGroup; + onCancel(event: VoidCallback): GestureGroup; } /*** endif */ @@ -5070,14 +5071,14 @@ export declare class GestureGroupHandler extends GestureHandler { /** * The GestureGroup gesture is successfully recognized and a callback is triggered when the touch cancel event is received. * - * @param { Callback } event + * @param { VoidCallback } event * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 */ - onCancel(event: Callback): this; + onCancel(event: VoidCallback): this; } /*** endif */ -- Gitee