From 1bc8a76fff51b1d3536a5ae07ad9fd257ec76477 Mon Sep 17 00:00:00 2001 From: Hu_zq Date: Fri, 2 May 2025 17:38:17 +0800 Subject: [PATCH] Swiper: add interface NODE_SWIPER_MAINTAIN_VISIBLE_CONTENT_POSITION Signed-off-by: Hu_zq Change-Id: I245d9e57f5f67f73fc3acff3aa69405ae32005ff --- arkui/ace_engine/native/native_node.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index c1458a02f..7fd8d6b3c 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. -- Gitee