From 451fd4ba5c4634cf3b76c24c0a306e1fe33795e4 Mon Sep 17 00:00:00 2001 From: jiangzhijun8 Date: Fri, 28 Jun 2024 15:28:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BE=9B=E5=9C=86=E7=82=B9=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E7=82=B9C-API=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiangzhijun8 --- arkui/ace_engine/native/libace.ndk.json | 8 ++++++++ arkui/ace_engine/native/native_node.h | 11 +++++++++++ arkui/ace_engine/native/native_type.h | 22 ++++++++++++++++++++++ 3 files changed, 41 insertions(+) diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index c0df2bc9b58..944e04c142c 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -1051,6 +1051,14 @@ "first_introduced": "12", "name": "OH_ArkUI_SwiperIndicator_GetSelectedColor" }, + { + "first_introduced": "12", + "name": "OH_ArkUI_SwiperIndicator_SetMaxDisplayCount" + }, + { + "first_introduced": "12", + "name": "OH_ArkUI_SwiperIndicator_GetMaxDisplayCount" + }, { "first_introduced": "12", "name": "OH_ArkUI_DrawableDescriptor_CreateFromPixelMap" diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 1277bb86225..ffe278ba379 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -4803,6 +4803,17 @@ typedef enum { */ NODE_SWIPER_SWIPE_TO_INDEX, + /** + * @brief Set to disable component navigation point interaction function。 + * + * Property setting method parameter {@link ArkUI-AttributeItem} format: \n + * .value[0].i32:Set to disable the interaction function of component navigation points. When set to true, it + * indicates that the navigation points are interactive. The default value is true. \n + * The return value of the attribute acquisition method is in the format of {@ link ArkUI-AttributeItem}: \n + * .value[0].i32:Set to disable component navigation point interaction. \n + */ + NODE_SWIPER_INDICATOR_INTERACTIVE, + /** * @brief: Set the delineation component of the ListItem, supporting property settings, property resets, and * property acquisition interfaces. diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index 56e1913c123..5975fd8d2fd 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -2588,6 +2588,28 @@ void OH_ArkUI_SwiperIndicator_SetSelectedColor(ArkUI_SwiperIndicator* indicator, */ uint32_t OH_ArkUI_SwiperIndicator_GetSelectedColor(ArkUI_SwiperIndicator* indicator); +/** + * @brief Sets the number of maxDisplayCount for the dot navigation indicator. + * + * @param indicator Indicates the pointer to the indicator. + * @param maxDisplayCount the maxDisplayCount of the navigation dot, span is 6-9. + * @return {@link ARKUI_ERROR_CODE_NO_ERROR} Success. + * {@link ARKUI_ERROR_CODE_PARAM_INVALID} indicator is null or maxDisplayCount less then 6 or + * maxDisplayCount more then 9 + * @since 12 +*/ +int32_t OH_ArkUI_SwiperIndicator_SetMaxDisplayCount(ArkUI_SwiperIndicator* indicator, int32_t maxDisplayCount); + +/** + * @brief Obtains the number of maxDisplayCount for the dot navigation indicator. + * + * @param indicator Indicates the pointer to the indicator. + * @return Returns the number of the maxDisplayCount, span is 6-9. + * 0 - indicator is null + * @since 12 +*/ +int32_t OH_ArkUI_SwiperIndicator_GetMaxDisplayCount(ArkUI_SwiperIndicator* indicator); + /** * @brief Create auxiliary line information in the RelativeContaine container. * -- Gitee