diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index eb8fb286fd4e06f90fe32fbec25dcbfdb4212cd0..754da8dd3cdeab9d092ce229832bda9f484df6d6 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -34078,6 +34078,19 @@ declare class ScrollableCommonMethod extends CommonMethod { */ onDidScroll(handler: OnScrollCallback): T; + /** + * Called when the scrollable will start dragging. + * + * @param { VoidCallback } handler - callback of start dragging. + * @returns { T } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 21 + */ + onWillStartDragging(handler: VoidCallback): T; + /** * Called when the scrollable will end dragging. * @@ -34091,6 +34104,45 @@ declare class ScrollableCommonMethod extends CommonMethod { */ onWillStopDragging(handler: OnWillStopDraggingCallback): T; + /** + * Called when the scrollable did end dragging. + * + * @param { OnDidStopDraggingCallback } handler - callback of end dragging. + * @returns { T } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 21 + */ + onDidStopDragging(handler: OnDidStopDraggingCallback): T; + + /** + * Called when the scrollable will start fling. + * + * @param { VoidCallback } handler - callback of start fling. + * @returns { T } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 21 + */ + onWillStartFling(handler: VoidCallback): T; + + /** + * Called when the scrollable did end fling. + * + * @param { VoidCallback } handler - callback of end fling. + * @returns { T } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 21 + */ + onDidStopFling(handler: VoidCallback): T; + /** * Triggered when the scrollable component reaches the start position. * @@ -34298,6 +34350,19 @@ declare type OnItemDragStartCallback = (event: ItemDragInfo, itemIndex: number) */ declare type OnWillStopDraggingCallback = (velocity: number) => void; +/** + * On scroll callback using in scrollable onDidStopDragging. + * + * @typedef { function } OnDidStopDraggingCallback + * @param { boolean } willFling - whether start fling animation. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 21 + */ +declare type OnDidStopDraggingCallback = (willFling: boolean) => void; + /** * Defines the onMove callback. *