diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 07a9708d9ffbd61a1e64c015457a9a7c9f1eb42e..2578eb5c2da6c14bdec59b04385f535e4582b08f 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -7905,6 +7905,22 @@ typedef enum { */ NODE_SWIPER_EVENT_ON_CONTENT_DID_SCROLL, + /** + * @brief Defines the event triggered when content in the swiper component will scroll. + * Instructions: Before page scrolling, the ContentWillScrollCallback callback is invoked. \n \n + * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is + * {@link ArkUI_NodeComponentEvent}. \n + * {@link ArkUI_NodeComponentEvent} contains three parameters:\n + * ArkUI_NodeComponentEvent.data[0].i32: the index value of the current child page. \n + * ArkUI_NodeComponentEvent.data[1].i32: the index value of the child page that will display. \n + * ArkUI_NodeComponentEvent.data[2].f32: the sliding offset of each frame. + * Positive numbers indicating slide backward(e.g. from index=1 to index=0), negative numbers indicating + * slide forward(e.g. from index=0 to index=1). \n + * + * @since 15 + */ + NODE_SWIPER_EVENT_ON_CONTENT_WILL_SCROLL = 1001007, + /** * @brief Defines the event triggered when the selected index of the ARKUI_NODE_SWIPER changed. * @@ -7939,22 +7955,6 @@ typedef enum { */ NODE_SWIPER_EVENT_ON_UNSELECTED = 1001006, - /** - * @brief Defines the event triggered when content in the swiper component will scroll. - * Instructions: Before page scrolling, the ContentWillScrollCallback callback is invoked. \n \n - * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is - * {@link ArkUI_NodeComponentEvent}. \n - * {@link ArkUI_NodeComponentEvent} contains three parameters:\n - * ArkUI_NodeComponentEvent.data[0].i32: the index value of the current child page. \n - * ArkUI_NodeComponentEvent.data[1].i32: the index value of the child page that will display. \n - * ArkUI_NodeComponentEvent.data[2].f32: the sliding offset of each frame. - * Positive numbers indicating slide backward(e.g. from index=1 to index=0), negative numbers indicating - * slide forward(e.g. from index=0 to index=1). \n - * - * @since 15 - */ - NODE_SWIPER_EVENT_ON_CONTENT_WILL_SCROLL = 1001007, - /** * @brief Defines the ARKUI_NODE_SWIPER scroll state change event. * This event is triggered when the scroll state of the Swiper component changes during user dragging,