OH_ArkUI_GetNavStackLength

Function OH_ArkUI_GetNavStackLength 

Source
pub unsafe extern "C" fn OH_ArkUI_GetNavStackLength(
    node: ArkUI_NodeHandle,
    length: *mut i32,
) -> ArkUiResult
Available on crate feature api-12 only.
Expand description

Based on the given index value, obtain the length of the Navigation stack where the node is located.

§Arguments

  • node - The node.

  • length - The length of the stack. After the operation succeeds, the result is written back to this parameter.

§Returns

  • The error code. [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. [ARKUI_ERROR_CODE_PARAM_INVALID] if the node or length is null. [ARKUI_ERROR_CODE_GET_INFO_FAILED] if query information failed, this may be because the node is not in Navigation.

Available since API-level: 12