OH_ArkUI_NodeContent_AddNode

Function OH_ArkUI_NodeContent_AddNode 

Source
pub unsafe extern "C" fn OH_ArkUI_NodeContent_AddNode(
    content: ArkUI_NodeContentHandle,
    node: ArkUI_NodeHandle,
) -> i32
Available on crate feature api-12 only.
Expand description

Add a node to a node content.

§Arguments

  • content - Indicates the pointer to the node content instance.

  • node - Indicates the pointer to the node

§Returns

  • Returns the error code. Returns [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.

Available since API-level: 12