From cbecfdaf6de0c5f3cf14db11c4cd55fc170aba27 Mon Sep 17 00:00:00 2001 From: dujingcheng Date: Wed, 26 Feb 2025 16:36:02 +0800 Subject: [PATCH] add embeded Signed-off-by: dujingcheng --- arkui/ace_engine/native/native_node.h | 50 +++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index e9575fdd0..8d21115c6 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -133,6 +133,11 @@ typedef enum { ARKUI_NODE_GRID_ITEM, /** Custom span. */ ARKUI_NODE_CUSTOM_SPAN, + /** + * EmbeddedComponent. + * @since 17 + */ + ARKUI_NODE_EMBEDDED_COMPONENT, } ArkUI_NodeType; /** @@ -6254,6 +6259,28 @@ typedef enum { * @since 16 */ NODE_CALENDAR_PICKER_MARK_TODAY = 16007, + + /** + * @brief Defines the want used to start EmbeddedAbility. + * 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: want. The default value is false.\n + * + * @since 17 + */ + NODE_EMBEDDED_COMPONENT_WANT = MAX_NODE_SCOPE_NUM * ARKUI_NODE_EMBEDDED_COMPONENT,, + + /** + * @brief Defines the Embedded type for EmbeddedAbility. + * 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: Embedded type. The default value is false. + * + * @since 17 + */ + NODE_EMBEDDED_COMPONENT_EMBEDDED_TYPE, } ArkUI_NodeAttributeType; #define MAX_COMPONENT_EVENT_ARG_NUM 12 @@ -7641,6 +7668,29 @@ typedef enum { * the end position of the currently displayed waterfall. \n */ NODE_WATER_FLOW_ON_SCROLL_INDEX, + + /** + * @brief Defines the event triggered when the ARKUI_NODE_EMBEDDED_COMPONENT + * component is about to onTerminated. + * + * Notes for triggering the event:\n + * 1. This event is triggered when EmbeddedAbility call terminateSelf or terminateSelfWithResult + * parameter type is {@link ArkUI_TerminationInfo}. \n + * + * @since 17 + */ + NODE_EMBEDDED_ON_TERMINATED = MAX_NODE_SCOPE_NUM * ARKUI_NODE_EMBEDDED_COMPONENT, + + /** + * @brief Defines the event triggered when the ARKUI_NODE_EMBEDDED_COMPONENT + * component is about to onError. + * + * Notes for triggering the event:\n + * 1. This event is triggered when EmbeddedAbility occupy error + * + * @since 17 + */ + NODE_EMBEDDED_ON_ERROR, } ArkUI_NodeEventType; /** -- Gitee