From 8a13b62d11a5fe4c4fa9958e74caad1f9ac7caa0 Mon Sep 17 00:00:00 2001 From: Lby Date: Tue, 13 May 2025 11:02:30 +0800 Subject: [PATCH] =?UTF-8?q?EmbeddedComponent=E6=8E=A5=E5=85=A5NDK=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=91=BD=E5=90=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lby --- arkui/ace_engine/native/libace.ndk.json | 8 +++--- arkui/ace_engine/native/native_node.h | 7 ++--- arkui/ace_engine/native/native_type.h | 34 ++++++++++++------------- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index 580f253e4..8143021a7 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -3313,18 +3313,18 @@ }, { "first_introduced": "20", - "name": "OH_ArkUI_EmbeddedComponentItem_Create" + "name": "OH_ArkUI_EmbeddedComponentOption_Create" }, { "first_introduced": "20", - "name": "OH_ArkUI_EmbeddedComponentItem_Dispose" + "name": "OH_ArkUI_EmbeddedComponentOption_Dispose" }, { "first_introduced": "20", - "name": "OH_ArkUI_EmbeddedComponentItem_SetOnError" + "name": "OH_ArkUI_EmbeddedComponentOption_SetOnError" }, { "first_introduced": "20", - "name": "OH_ArkUI_EmbeddedComponentItem_SetOnTerminated" + "name": "OH_ArkUI_EmbeddedComponentOption_SetOnTerminated" } ] \ No newline at end of file diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 0c33df0d8..91748f72b 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -6499,7 +6499,7 @@ typedef enum { /** * @brief Defines the want used to start EmbeddedAbility. - * This attribute can be set, reset, and obtained as required through APIs. + * This attribute can be set as required through APIs. * * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n * value[0].i32: want. The default value is nullptr.\n @@ -6510,10 +6510,11 @@ typedef enum { /** * @brief Set onError and onTerminated callbacks for EMBEDDED_COMPONENT. + * This attribute can be set as required through APIs. * * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n - * .object: OH_ArkUI_EmbeddedComponentItem_SetOnError set onError callback. \n - * OH_ArkUI_EmbeddedComponentItem_SetOnTerminated set onTerminated callback.\n + * .object: OH_ArkUI_EmbeddedComponentOption_SetOnError set onError callback. \n + * OH_ArkUI_EmbeddedComponentOption_SetOnTerminated set onTerminated callback.\n * * @since 20 */ diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index 0e3ebe0ad..44ef64f61 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -243,18 +243,18 @@ typedef struct ArkUI_ProgressLinearStyleOption ArkUI_ProgressLinearStyleOption; typedef struct ArkUI_CrossLanguageOption ArkUI_CrossLanguageOption; /** - * @brief Defines the Ability base want. + * @brief Declares the Ability base want. * * @since 20 */ typedef struct AbilityBase_Want AbilityBase_Want; /** - * @brief Define the EmbeddedComponentItem for the EmbeddedComponent. + * @brief Define the EmbeddedComponentOption for the EmbeddedComponent. * * @since 20 */ -typedef struct ArkUI_EmbeddedComponentItem ArkUI_EmbeddedComponentItem; +typedef struct ArkUI_EmbeddedComponentOption ArkUI_EmbeddedComponentOption; /** * @brief Defines the event callback type. @@ -5161,43 +5161,43 @@ void OH_ArkUI_TextCascadePickerRangeContentArray_SetChildAtIndex( void OH_ArkUI_TextCascadePickerRangeContentArray_Destroy(ArkUI_TextCascadePickerRangeContentArray* handle); /** - * @brief Create a configuration item for the EmbeddedComponentItem interface settings. + * @brief Create an object for the EmbeddedComponent option. * - * @return EmbeddedComponent Item configuration item instance. + * @return A pointer to the object of the EmbeddedComponent option. * @since 20 */ -ArkUI_EmbeddedComponentItem *OH_ArkUI_EmbeddedComponentItem_Create(); +ArkUI_EmbeddedComponentOption* OH_ArkUI_EmbeddedComponentOption_Create(); /** - * @brief Destroy the EmbeddedComponentItem instance. + * @brief Destroy the object by EmbeddedComponent option. * - * @param item EmbeddedComponent Item instance to be destroyed. + * @param option Pointer to the object by the EmbeddeComponent to be destroyed. * @since 20 */ -void OH_ArkUI_EmbeddedComponentItem_Dispose(ArkUI_EmbeddedComponentItem *item); +void OH_ArkUI_EmbeddedComponentOption_Dispose(ArkUI_EmbeddedComponentOption* option); /** - * @brief Set the onError of EmbeddedComponentItem. + * @brief Set the onError of EmbeddedComponent. * - * @param item EmbeddedComponentItem instance. + * @param option Pointer to the object option by the EmbeddedComponent. * @param code Common error information about the API invoking failure. * @param name Common error name information about the API invoking failure. * @param message Common error message information about the API invoking failure. * @since 20 */ -void OH_ArkUI_EmbeddedComponentItem_SetOnError( - ArkUI_EmbeddedComponentItem *item, void (*callback)(int32_t code, const char *name, const char *message)); +void OH_ArkUI_EmbeddedComponentOption_SetOnError( + ArkUI_EmbeddedComponentOption* option, void (*callback)(int32_t code, const char* name, const char* message)); /** - * @brief Set the onTerminated of EmbeddedComponentItem. + * @brief Set the onTerminated of EmbeddedComponent. * - * @param item EmbeddedComponentItem instance. + * @param option Pointer to the object option by the EmbeddedComponent. * @param code Result code returned when the EmbeddedUIExtensionAbility exits. * @param want Data returned when the EmbeddedUIExtensionAbility exits. * @since 20 */ -void OH_ArkUI_EmbeddedComponentItem_SetOnTerminated( - ArkUI_EmbeddedComponentItem *item, void (*callback)(int32_t code, AbilityBase_Want *want)); +void OH_ArkUI_EmbeddedComponentOption_SetOnTerminated( + ArkUI_EmbeddedComponentOption* option, void (*callback)(int32_t code, AbilityBase_Want* want)); #ifdef __cplusplus }; #endif -- Gitee