pub unsafe extern "C" fn OH_ArkUI_RenderNodeUtils_AddRenderNode(
node: ArkUI_NodeHandle,
child: ArkUI_RenderNodeHandle,
) -> i32Available on crate feature
api-20 only.Expand description
Adds a child render node to a parent node.
§Arguments
node- the target parent node.
- Only customNode type parent nodes are supported.
- Each customNode can mount only one ArkUI_RenderNodeHandle.
- customNode cannot mount other ArkUI_NodeHandle.
child- the child RenderNode to add.
§Returns
- Error code.
[
ARKUI_ERROR_CODE_NO_ERROR] Success. [ARKUI_ERROR_CODE_PARAM_INVALID] Function parameter exception. [ARKUI_ERROR_CODE_CAPI_INIT_ERROR] if CAPI init error. [ARKUI_ERROR_CODE_NOT_CUSTOM_NODE] The node is not a customNode. [ARKUI_ERROR_CODE_CHILD_EXISTED] The node already has a child. [ARKUI_ERROR_CODE_RENDER_PARENT_EXISTED] The child already has a parent node.
Available since API-level: 20