diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index c0df2bc9b58933b9aba3c45a5584130e94e307e0..944e04c142c460cfdef1074d8e403f8231cc3745 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 1277bb862251a0c2a78d69300e38caa5acc91bc8..ffe278ba3797432c8aea83ee358193cea8ca2361 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 56e1913c12357233126ff3d1cd7f529b5d0f9e1d..5975fd8d2fd0de210c60d8232eb362f8af07d065 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. *