OH_ArkUI_RenderNodeUtils_InsertChildAfter

Function OH_ArkUI_RenderNodeUtils_InsertChildAfter 

Source
pub unsafe extern "C" fn OH_ArkUI_RenderNodeUtils_InsertChildAfter(
    node: ArkUI_RenderNodeHandle,
    child: ArkUI_RenderNodeHandle,
    sibling: ArkUI_RenderNodeHandle,
) -> i32
Available on crate feature api-20 only.
Expand description

Insert a child node after the specified sibling node in RenderNode.

§Arguments

  • node - the parent RenderNode.

  • child - the child RenderNode to insert.

  • sibling - the reference sibling node. If the sibling node does not exist in the children, the child component will be added to the end.

§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.

Available since API-level: 20