OH_ArkUI_NodeUtils_GetFirstChildIndexWithoutExpand

Function OH_ArkUI_NodeUtils_GetFirstChildIndexWithoutExpand 

Source
pub unsafe extern "C" fn OH_ArkUI_NodeUtils_GetFirstChildIndexWithoutExpand(
    node: ArkUI_NodeHandle,
    index: *mut u32,
) -> i32
Available on crate features api-12 and api-15 only.
Expand description

Obtains the index of the current FrameNode’s first child node which is on the tree.

§Arguments

  • node - Indicates the target node.

  • index - The index of the subnode.

§Returns

  • Error code. [ARKUI_ERROR_CODE_NO_ERROR] success. [ARKUI_ERROR_CODE_PARAM_INVALID] Function parameter exception.

Available since API-level: 15