diff --git a/api/@internal/component/ets/grid.d.ts b/api/@internal/component/ets/grid.d.ts index efd47c1af2a4c7456292981f5eed7eb6d5b8d5b1..a5d40838905cad7e3b19faca29a73f10340f54fa 100644 --- a/api/@internal/component/ets/grid.d.ts +++ b/api/@internal/component/ets/grid.d.ts @@ -1440,7 +1440,18 @@ declare class GridAttribute extends ScrollableCommonMethod { * @atomicservice * @since 11 */ - onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number }): GridAttribute; + /** + * Called when scrolling begin each frame. + * Anonymous Object Rectification. + * + * @param { OnScrollFrameBeginCallback } event - callback function, triggered when the scrolling begin each frame. + * @returns { GridAttribute } Returns the instance of the GridAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + onScrollFrameBegin(event: OnScrollFrameBeginCallback): GridAttribute; /** * Called when scrolling begin each frame. diff --git a/api/@internal/component/ets/list.d.ts b/api/@internal/component/ets/list.d.ts index 1f4439f34fcd1c183004808fa732f42aa15c2120..15d7f815e60d80ed080f06e9dd0ea5ec3f195263 100644 --- a/api/@internal/component/ets/list.d.ts +++ b/api/@internal/component/ets/list.d.ts @@ -2678,7 +2678,8 @@ declare class ListAttribute extends ScrollableCommonMethod { */ /** * Triggered when the list starts to scroll. The input parameters indicate the amount by which the list will scroll. - * The event handler then works out the amount by which the list needs to scroll based on the real-world situation and returns the result. + * The event handler then works out the amount by which the list needs to scroll based on the real-world situation + * and returns the result. * * @param { function } event * @returns { ListAttribute } @@ -2688,7 +2689,21 @@ declare class ListAttribute extends ScrollableCommonMethod { * @atomicservice * @since 11 */ - onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number }): ListAttribute; + /** + * Triggered when the list starts to scroll. The input parameters indicate the amount by which the list will scroll. + * The event handler then works out the amount by which the list needs to scroll based on the real-world situation + * and returns the result. + * Anonymous Object Rectification. + * + * @param { OnScrollFrameBeginCallback } event - callback function, triggered when the scrolling begin each frame. + * @returns { ListAttribute } Returns the instance of the ListAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + onScrollFrameBegin(event: OnScrollFrameBeginCallback): ListAttribute; /** * Called when scrolling begin each frame. diff --git a/api/@internal/component/ets/water_flow.d.ts b/api/@internal/component/ets/water_flow.d.ts index 98eb139e4ab1b933973040cfc50dba3cef444e05..a46ceed8047a82b38202fb2da38d53d79b3eb051 100644 --- a/api/@internal/component/ets/water_flow.d.ts +++ b/api/@internal/component/ets/water_flow.d.ts @@ -945,7 +945,18 @@ declare class WaterFlowAttribute extends ScrollableCommonMethod { offsetRemain: number }): WaterFlowAttribute; + /** + * Called when scrolling begin each frame. + * Anonymous Object Rectification. + * + * @param { OnScrollFrameBeginCallback } event - callback function, triggered when the scrolling begin each frame. + * @returns { WaterFlowAttribute } the attribute of the water flow. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + onScrollFrameBegin(event: OnScrollFrameBeginCallback): WaterFlowAttribute; /** * Called when scrolling begin each frame.