OH_ArkUI_RenderNodeUtils_GetChild

Function OH_ArkUI_RenderNodeUtils_GetChild 

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

Get a child node at the specified index position.

§Arguments

  • node - the parent RenderNode.

  • index - Zero-based index of the child node.

  • child - ArkUI_RenderNodeHandle pointer to receive the child 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 CAPI init error. [ARKUI_ERROR_CODE_CHILD_RENDER_NOT_EXIST] The child does not exist.

Available since API-level: 20