pub unsafe extern "C" fn OH_ArkUI_GetNavDestinationIndex(
node: ArkUI_NodeHandle,
index: *mut i32,
) -> ArkUiResultAvailable on crate feature
api-12 only.Expand description
Obtain the index of the NavDestination component on the Navigation stack where the node is located.
§Arguments
-
node- The node. -
index- Index value, counted from 0.
§Returns
- The error code.
[
ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. [ARKUI_ERROR_CODE_PARAM_INVALID] if the node or index 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