From 390877350fe51efa9067bb31be32b30763098b46 Mon Sep 17 00:00:00 2001 From: fangzhiyuan Date: Sat, 21 Jun 2025 15:19:53 +0800 Subject: [PATCH] =?UTF-8?q?ArkUI=5FNativeModule/native=5Fnode/native=5Ftyp?= =?UTF-8?q?e=E6=96=87=E6=A1=A3=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fangzhiyuan --- .../reference/apis-arkui/_ark_u_i___native_module.md | 4 ++-- .../reference/apis-arkui/native__node_8h.md | 10 +++++++++- .../reference/apis-arkui/native__type_8h.md | 11 ++++++++++- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/zh-cn/application-dev/reference/apis-arkui/_ark_u_i___native_module.md b/zh-cn/application-dev/reference/apis-arkui/_ark_u_i___native_module.md index 6858188bd8f..46e3bca02fc 100644 --- a/zh-cn/application-dev/reference/apis-arkui/_ark_u_i___native_module.md +++ b/zh-cn/application-dev/reference/apis-arkui/_ark_u_i___native_module.md @@ -149,7 +149,7 @@ | typedef struct [ArkUI_VisibleAreaEventOptions](#arkui_visibleareaeventoptions) [ArkUI_VisibleAreaEventOptions](#arkui_visibleareaeventoptions) | 可见区域变化监听的参数。 | | typedef struct [ArkUI_CustomProperty](#arkui_customproperty) [ArkUI_CustomProperty](#arkui_customproperty) | 定义自定义属性的CustomProperty类信息。 | | typedef struct [ArkUI_HostWindowInfo](#arkui_hostwindowinfo) [ArkUI_HostWindowInfo](#arkui_hostwindowinfo) | 定义窗口属性的HostWindowInfo类信息。 | -| typedef struct [ArkUI_ActiveChildrenInfo](#arkui_activechildreninfo) [ArkUI_HostWindowInfo](#arkui_activechildreninfo) | 定义ActiveChildrenInfo类信息。 | +| typedef struct [ArkUI_ActiveChildrenInfo](#arkui_activechildreninfo) [ArkUI_ActiveChildrenInfo](#arkui_activechildreninfo) | 定义ActiveChildrenInfo类信息。 | ### 枚举 @@ -15502,7 +15502,7 @@ void* OH_ArkUI_QueryModuleInterfaceByName (ArkUI_NativeAPIVariantKind type, cons ``` **描述:** -获取指定类型的Native模块接口集合。 +需调用该函数初始化C-API环境,并获取指定类型的Native模块接口集合。 **起始版本:** 12 diff --git a/zh-cn/application-dev/reference/apis-arkui/native__node_8h.md b/zh-cn/application-dev/reference/apis-arkui/native__node_8h.md index 6ec6c7246c5..6fb23d75bdd 100644 --- a/zh-cn/application-dev/reference/apis-arkui/native__node_8h.md +++ b/zh-cn/application-dev/reference/apis-arkui/native__node_8h.md @@ -147,4 +147,12 @@ | int32_t [OH_ArkUI_NodeUtils_GetPositionToParent](_ark_u_i___native_module.md#oh_arkui_nodeutils_getpositiontoparent) ([ArkUI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle) node, [ArkUI_IntOffset](_ark_u_i___int_offset.md) \*globalOffset) | 获取目标节点相对于父节点的偏移值。 | | [ArkUI_ErrorCode](_ark_u_i___native_module.md#arkui_errorcode) [OH_ArkUI_AddSupportedUIStates](_ark_u_i___native_module.md#oh_arkui_addsupporteduistates) ([ArkUI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle) node, int32_t uiStates, void (statesChangeHandler)(int32_t currentStates, void* userData), bool excludeInner, void* userData) | 设置组件支持的多态样式状态。 | | [ArkUI_ErrorCode](_ark_u_i___native_module.md#arkui_errorcode) [OH_ArkUI_RemoveSupportedUIStates](_ark_u_i___native_module.md#oh_arkui_removesupporteduistates) ([ArkUI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle) node, int32_t uiStates) | 删除注册的状态。 | -| int32_t [OH_ArkUI_RunTaskInScope](_ark_u_i___native_module.md#oh_arkui_runtaskinscope)([ArkUI_ContextHandle](_ark_u_i___native_module.md#arkui_contexthandle-12) uiContext, void* userData, void(*callback)(void* userData)) | 在UIContext作用域内运行自定义函数。 | \ No newline at end of file +| int32_t [OH_ArkUI_RunTaskInScope](_ark_u_i___native_module.md#oh_arkui_runtaskinscope)([ArkUI_ContextHandle](_ark_u_i___native_module.md#arkui_contexthandle-12) uiContext, void* userData, void(*callback)(void* userData)) | 在UIContext作用域内运行自定义函数。 | +| int32_t [OH_ArkUI_NodeUtils_GetWindowInfo](_ark_u_i___native_module.md#oh_arkui_nodeutils_getwindowinfo)([ArkUI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle) node, [ArkUI_HostWindowInfo](_ark_u_i___native_module.md#arkui_hostwindowinfo)** info) | 获取节点所属的窗口信息。 | +| int32_t [OH_ArkUI_NodeUtils_GetFirstChildIndexWithoutExpand](_ark_u_i___native_module.md#oh_arkui_nodeutils_getfirstchildindexwithoutexpand)([ArkUI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle) node, uint32_t* index) | 获取目标节点在不展开情况下的第一个子节点的下标。 | +| int32_t [OH_ArkUI_NodeUtils_GetLastChildIndexWithoutExpand](_ark_u_i___native_module.md#oh_arkui_nodeutils_getlastchildindexwithoutexpand)([ArkUI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle) node, uint32_t* index) | 获取目标节点在不展开情况下的最后一个子节点的下标。 | +| int32_t [OH_ArkUI_NodeUtils_GetChildWithExpandMode](_ark_u_i___native_module.md#oh_arkui_nodeutils_getchildwithexpandmode)([ArkUI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle) node, int32_t position, [ArkUI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle)* subnode, uint32_t expandMode) | 用不同的展开模式获取对应下标的子节点。 | +| int32_t [OH_ArkUI_NodeUtils_MoveTo](_ark_u_i___native_module.md#oh_arkui_nodeutils_moveto)([ArkUI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle) node, [ArkUI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle) target_parent, int32_t index) | 将节点移动到目标父节点下,插入到指定下标作为子节点。 | +| int32_t [OH_ArkUI_NodeUtils_SetCrossLanguageOption](_ark_u_i___native_module.md#oh_arkui_nodeutils_setcrosslanguageoption)([ArkUI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle) node, ArkUI_CrossLanguageOption* option) | 设置目标节点跨语言的配置。 | +| int32_t [OH_ArkUI_NodeUtils_GetCrossLanguageOption](_ark_u_i___native_module.md#oh_arkui_nodeutils_getcrosslanguageoption)([ArkUI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle) node, ArkUI_CrossLanguageOption* option) | 获取目标节点跨语言的配置。 | +| int32_t [OH_ArkUI_NodeUtils_GetAttachedNodeHandleById](_ark_u_i___native_module.md#oh_arkui_nodeutils_getattachednodehandlebyid)(const char* id, [ArkUI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle)* node) | 根据传入的id获取当前节点树上对应的目标节点。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis-arkui/native__type_8h.md b/zh-cn/application-dev/reference/apis-arkui/native__type_8h.md index a42778a1305..f3f8d3d34f3 100644 --- a/zh-cn/application-dev/reference/apis-arkui/native__type_8h.md +++ b/zh-cn/application-dev/reference/apis-arkui/native__type_8h.md @@ -77,6 +77,8 @@ | typedef struct [ArkUI_EmbeddedComponentOption](_ark_u_i___native_module.md#arkui_embeddedcomponentoption) [ArkUI_EmbeddedComponentOption](_ark_u_i___native_module.md#arkui_embeddedcomponentoption) | 定义EmbeddedComponent组件的选项。 | | typedef struct [ArkUI_TextPickerRangeContentArray](_ark_u_i___native_module.md#arkui_textpickerrangecontentarray) [ArkUI_TextPickerRangeContentArray](_ark_u_i___native_module.md#arkui_textpickerrangecontentarray) | 定义文本选择器的数据选择列表。
**起始版本:** 19 | | typedef struct [ArkUI_TextCascadePickerRangeContentArray](_ark_u_i___native_module.md#arkui_textcascadepickerrangecontentarray) [ArkUI_TextCascadePickerRangeContentArray](_ark_u_i___native_module.md#arkui_textcascadepickerrangecontentarray) | 定义多列联动数据选择器的多列联动数据选择列表。
**起始版本:** 19 | +| typedef struct [ArkUI_ActiveChildrenInfo](_ark_u_i___native_module.md#arkui_activechildreninfo) [ArkUI_ActiveChildrenInfo](_ark_u_i___native_module.md#arkui_activechildreninfo) | 定义ActiveChildrenInfo类信息。
**起始版本:** 14 | +| typedef struct ArkUI_CrossLanguageOption ArkUI_CrossLanguageOption | 定义跨语言配置。
**起始版本:** 15 | ### 枚举 @@ -189,6 +191,7 @@ | [ArkUI_DatePickerMode](_ark_u_i___native_module.md#arkui_datepickermode) {
[ARKUI_DATEPICKER_MODE_DATE](_ark_u_i___native_module.md) = 0, [ARKUI_DATEPICKER_YEAR_AND_MONTH](_ark_u_i___native_module.md) = 1, [ARKUI_DATEPICKER_MONTH_AND_DAY](_ark_u_i___native_module.md) = 2
} | 定义要显示的日期选项列样式。 | | [ArkUI_ExpandMode](_ark_u_i___native_module.md#arkui_expandmode) {
[ARKUI_NOT_EXPAND](_ark_u_i___native_module.md) = 0, [ARKUI_EXPAND](_ark_u_i___native_module.md) = 1, [ARKUI_LAZY_EXPAND](_ark_u_i___native_module.md) = 2
} | 定义子节点展开模式枚举值。 | | [ArkUI_ListItemGroupArea](_ark_u_i___native_module.md#arkui_listitemgrouparea) {
[ARKUI_LIST_ITEM_GROUP_AREA_OUTSIDE](_ark_u_i___native_module.md) = 0, [ARKUI_LIST_ITEM_SWIPE_AREA_NONE](_ark_u_i___native_module.md) = 1, [ARKUI_LIST_ITEM_SWIPE_AREA_ITEM](_ark_u_i___native_module.md) = 2, [ARKUI_LIST_ITEM_SWIPE_AREA_HEADER](_ark_u_i___native_module.md) = 3, [ARKUI_LIST_ITEM_SWIPE_AREA_FOOTER](_ark_u_i___native_module.md) = 4
} | 定义组件区域的枚举值。 | +| [ArkUI_UIState](_ark_u_i___native_module.md#arkui_uistate) {
[UI_STATE_NORMAL](_ark_u_i___native_module.md) = 0, [UI_STATE_PRESSED](_ark_u_i___native_module.md) = 1 << 0, [UI_STATE_FOCUSED](_ark_u_i___native_module.md) = 1 << 1, [UI_STATE_DISABLED](_ark_u_i___native_module.md) = 1 << 2, [UI_STATE_SELECTED](_ark_u_i___native_module.md) = 1 << 3
} | 组件的UI状态枚举,用于处理状态样式。 | ### 函数 @@ -443,4 +446,10 @@ | [ArkUI_EmbeddedComponentOption](_ark_u_i___native_module.md#arkui_embeddedcomponentoption)\* [OH_ArkUI_EmbeddedComponentOption_Create](_ark_u_i___native_module.md#oh_arkui_embeddedcomponentoption_create) () | 创建EmbeddedComponent组件选项的对象。 | | void [OH_ArkUI_EmbeddedComponentOption_Dispose](_ark_u_i___native_module.md#oh_arkui_embeddedcomponentoption_dispose) ([ArkUI_EmbeddedComponentOption](_ark_u_i___native_module.md#arkui_embeddedcomponentoption)\* option) | 删除EmbeddedComponent组件选项的对象。 | | void [OH_ArkUI_EmbeddedComponentOption_SetOnError](_ark_u_i___native_module.md#oh_arkui_embeddedcomponentoption_setonerror) ([ArkUI_EmbeddedComponentOption](_ark_u_i___native_module.md#arkui_embeddedcomponentoption)\* option, void(\*callback)(int32_t code, const char\* name, const char\* message)) | 设置EmbeddedComponent组件的onError回调。 | -| void [OH_ArkUI_EmbeddedComponentOption_SetOnTerminated](_ark_u_i___native_module.md#oh_arkui_embeddedcomponentoption_setonterminated) ([ArkUI_EmbeddedComponentOption](_ark_u_i___native_module.md#arkui_embeddedcomponentoption)\* option, void(\*callback)(int32_t code, [AbilityBase_Want](../apis-ability-kit/_ability_base.md#abilitybase_want)\* want)) | 设置EmbeddedComponent组件的onTerminated回调。 | \ No newline at end of file +| void [OH_ArkUI_EmbeddedComponentOption_SetOnTerminated](_ark_u_i___native_module.md#oh_arkui_embeddedcomponentoption_setonterminated) ([ArkUI_EmbeddedComponentOption](_ark_u_i___native_module.md#arkui_embeddedcomponentoption)\* option, void(\*callback)(int32_t code, [AbilityBase_Want](../apis-ability-kit/_ability_base.md#abilitybase_want)\* want)) | 设置EmbeddedComponent组件的onTerminated回调。 | +| const char\* [OH_ArkUI_HostWindowInfo_GetName](_ark_u_i___native_module.md#oh_arkui_hostwindowinfo_getname) ([ArkUI_HostWindowInfo](_ark_u_i___native_module.md#arkui_hostwindowinfo)\* info) | 获取HostWindowInfo对象中的窗口名称。 | +| void [OH_ArkUI_HostWindowInfo_Destroy](_ark_u_i___native_module.md#oh_arkui_hostwindowinfo_destroy) ([ArkUI_HostWindowInfo](_ark_u_i___native_module.md#arkui_hostwindowinfo)\* info) | 销毁HostWindowInfo对象。 | +| ArkUI_CrossLanguageOption\* [OH_ArkUI_CrossLanguageOption_Create](_ark_u_i___native_module.md#oh_arkui_crosslanguageoption_create) (void) | 创建跨语言配置实例。 | +| void [OH_ArkUI_CrossLanguageOption_Destroy](_ark_u_i___native_module.md#oh_arkui_crosslanguageoption_destroy) (ArkUI_CrossLanguageOption\* option) | 销毁跨语言配置实例。 | +| void [OH_ArkUI_CrossLanguageOption_SetAttributeSettingStatus](_ark_u_i___native_module.md#oh_arkui_crosslanguageoption_setattributesettingstatus) (ArkUI_CrossLanguageOption\* option, bool enabled) | 设置是否允许跨语言修改属性的配置项。 | +| bool [OH_ArkUI_CrossLanguageOption_GetAttributeSettingStatus](_ark_u_i___native_module.md#oh_arkui_crosslanguageoption_getattributesettingstatus) (ArkUI_CrossLanguageOption\* option) | 获取是否允许跨语言修改属性的配置项的值。 | \ No newline at end of file -- Gitee