diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index e1a222b7c24b4eea45059ba62f237967433a8f89..5db4f9aaed532a659a1a77ce4f34f796461a0952 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -567,6 +567,10 @@ "first_introduced": "12", "name": "OH_ArkUI_WaterFlowSectionOption_SetMargin" }, + { + "first_introduced": "12", + "name": "OH_ArkUI_WaterFlowSectionOption_GetItemCount" + }, { "first_introduced": "12", "name": "OH_ArkUI_WaterFlowSectionOption_GetCrossCount" diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 12fa4b3ec7833a00ab3d1fa590fbb3a87eb9cca4..1676f8aa3b6e93f27dd7145794294f7a8dc1182a 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -4276,7 +4276,7 @@ typedef enum { * {@link ArkUI_NodeComponentEvent} contains two parameters: \n * ArkUI_NodeComponentEvent.data[0].f32: scroll offset of each frame. The offset is positive when the * component is scrolled up and negative when the component is scrolled down. \n - * ArkUI_NodeComponentEvent.data[1].f32: current scroll state. \n + * ArkUI_NodeComponentEvent.data[1].i32: current scroll state. \n */ NODE_ON_WILL_SCROLL = MAX_NODE_SCOPE_NUM * ARKUI_NODE_WATER_FLOW, } ArkUI_NodeEventType; diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index 3a4c3647b470a214059409ea0e51ca7a7eb1e380..91b6586108672eada9da21ca6487bb3aad71b09b 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -1563,6 +1563,16 @@ void OH_ArkUI_WaterFlowSectionOption_Dispose(ArkUI_WaterFlowSectionOption* optio void OH_ArkUI_WaterFlowSectionOption_SetItemCount(ArkUI_WaterFlowSectionOption* option, int32_t index, int32_t itemCount); +/** +* @brief Obtains the number of items in the water flow section that matches the specified index. +* +* @param option Indicates the pointer to a water flow section configuration. +* @param index Indicates the index of the target water flow section. +* @return Returns the number of items in the water flow section. +* @since 12 +*/ +int32_t OH_ArkUI_WaterFlowSectionOption_GetItemCount(ArkUI_WaterFlowSectionOption* option, int32_t index); + /** * @brief Sets the number of columns (in a vertical layout) or rows (in a horizontal layout) of a water flow. *