diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index f6e7ea1cdc7e53aa5666f83564cd3327927bd793..d71b514942b7073412cec93276b43fd4d3f31361 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -6461,6 +6461,23 @@ typedef enum { */ NODE_SWIPER_EVENT_ON_CONTENT_DID_SCROLL, + /** + * @brief Defines the event triggered when the selection changes in the ARKUI_NODE_SWIPER. + * + * This event is triggered under the following scenarios: \n + * 1. When the page switching animation starts after the user lifts their finger after swiping and the swipe meets + * the threshold for page turning. \n + * 2. When the page is changed programmatically using either NODE_SWIPER_INDEX or + * NODE_SWIPER_SWIPE_TO_INDEX. \n + * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is + * {@link ArkUI_NodeComponentEvent}. \n + * {@link ArkUI_NodeComponentEvent} contains one parameter:\n + * ArkUI_NodeComponentEvent.data[0].i32: index of the currently selected element. \n + * + * @since 16 + */ + NODE_SWIPER_EVENT_ON_SELECTED, + /** * @brief Defines the event triggered when the ARKUI_NODE_SCROLL component scrolls. *