diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 6f657358c05f8cb08048bd0d6f3a9f166122e970..1e77301897324def8b2c7b1013beeba0a3573f89 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -34153,6 +34153,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 22 + */ + onWillStartDragging(handler: VoidCallback): T; + /** * Called when the scrollable will end dragging. * @@ -34166,6 +34179,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 22 + */ + 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 22 + */ + 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 22 + */ + onDidStopFling(handler: VoidCallback): T; + /** * Triggered when the scrollable component reaches the start position. * @@ -34373,6 +34425,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 22 + */ +declare type OnDidStopDraggingCallback = (willFling: boolean) => void; + /** * Defines the onMove callback. *