From 120a495dcb83d21e5607f33e4194995f66f715e4 Mon Sep 17 00:00:00 2001 From: zcdqs Date: Mon, 2 Dec 2024 19:51:59 +0800 Subject: [PATCH] add show cached count to swiper Signed-off-by: zcdqs Change-Id: I8525a5dd5c3bc17131c2e8d2e33cf21a3413215c --- arkui/ace_engine/native/native_node.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index f20102e7c..bffff1d30 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -4868,12 +4868,20 @@ typedef enum { NODE_SWIPER_NODE_ADAPTER, /** - * @brief Sets the number of cached items in the swiper adapter. - * This attribute can be set, reset, and obtained as required through APIs. - * - * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n - * .value[0].i32: number of cached items in the swiper adapter. \n - */ + * @brief Sets the number of cached items in the swiper adapter. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: number of cached items in the swiper adapter. \n + * .value[1]?.i32: whether the cached items will be displayed. \n + * The value 0 indicates that cached items will not be displayed, \n + * and 1 indicates that cached nodes will be displayed. The default value is 0. \n + * This parameter is supported from API version 16. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: number of cached items in the swiper adapter. \n + * .value[1].i32: whether the cached items will be displayed. This parameter is supported from API version 16. \n + */ NODE_SWIPER_CACHED_COUNT, /** -- Gitee