diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 0b18b223f8722f7cad873830f8ca770fae85794a..396e32c04bc76ed36619a0235db2babb16966239 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Huawei Device Co., Ltd. + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -5732,6 +5732,22 @@ typedef enum { */ NODE_LIST_FOCUS_WRAP_MODE = 1003015, + /** + * @brief Defines whether the List component loads child nodes synchronously. + * 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: whether the List component synchronously loads child nodes. + * The value 0 means loading by frames, and 1 means synchronous loading. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: whether the List component synchronously loads child nodes. + * The value 0 means loading by frames, and 1 means synchronous loading. \n + * + * @since 20 + */ + NODE_LIST_SYNC_LOAD = 1003016, + /** * @brief Defines whether to enable loop playback for the swiper. * This attribute can be set, reset, and obtained as required through APIs. @@ -6508,6 +6524,22 @@ typedef enum { */ NODE_WATER_FLOW_LAYOUT_MODE, + /** + * @brief Defines whether the WaterFlow component loads child nodes synchronously. + * 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: whether the WaterFlow component synchronously loads child nodes. + * The value 0 means loading by frames, and 1 means synchronous loading. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: whether the WaterFlow component synchronously loads child nodes. + * The value 0 means loading by frames, and 1 means synchronous loading. \n + * + * @since 20 + */ + NODE_WATER_FLOW_SYNC_LOAD = 1010012, + /** * @brief Set the auxiliary line in the RelativeContaine container, supporting property setting, * property reset and property acquisition interfaces. @@ -6629,6 +6661,22 @@ typedef enum { */ NODE_GRID_FOCUS_WRAP_MODE = 1013006, + /** + * @brief Defines whether the Grid component loads child nodes synchronously. + * 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: whether the Grid component synchronously loads child nodes. + * The value 0 means loading by frames, and 1 means synchronous loading. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: whether the Grid component synchronously loads child nodes. + * The value 0 means loading by frames, and 1 means synchronous loading. \n + * + * @since 20 + */ + NODE_GRID_SYNC_LOAD = 1013007, + /** * @brief Defines the column width of the text picker. * This attribute can be set, reset, and obtained as required through APIs.