diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index c1458a02f899bd229dcfdea0ebb2ace220994112..7fd8d6b3c023347851bdbfa8732150ca410047e2 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -5747,6 +5747,24 @@ typedef enum { */ NODE_SWIPER_AUTO_FILL, + /** + * @brief Sets whether to maintain the visible content's position when data is inserted or deleted outside + * the display area of the Swiper component. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: whether to maintain the visible content's position when data is inserted or deleted outside + * the display area of the Swiper component. The value 0 means not to maintain the visible content's + * position, and 1 means the opposite. The default value is 0. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: whether to maintain the visible content's position when data is inserted or deleted outside + * the display area of the Swiper component. The value 0 means not to maintain the visible content's + * position, and 1 means the opposite. The default value is 0. \n + * + * @since 20 + */ + NODE_SWIPER_MAINTAIN_VISIBLE_CONTENT_POSITION = 1001023, + /** * @brief: Set the delineation component of the ListItem, supporting property settings, property resets, and * property acquisition interfaces.