OH_ArkUI_NodeUtils_MoveTo

Function OH_ArkUI_NodeUtils_MoveTo 

Source
pub unsafe extern "C" fn OH_ArkUI_NodeUtils_MoveTo(
    node: ArkUI_NodeHandle,
    target_parent: ArkUI_NodeHandle,
    index: i32,
) -> i32
Available on crate features api-12 and api-18 only.
Expand description

Move the node handle to target parent node as child.

§Arguments

  • node - The node handle of the node to move.

  • target_parent - The node handle of target parent.

  • index - Indicates the index which the node is moved to. If the value is a nagative number of invalid, the node is moved to the end of the target parent node.

§Returns

  • Error code. [ARKUI_ERROR_CODE_NO_ERROR] success. [ARKUI_ERROR_CODE_PARAM_INVALID] Function parameter exception. [ARKUI_ERROR_CODE_CAPI_INIT_ERROR] if the CAPI init error.

Available since API-level: 18