OH_ArkUI_GetNavDestinationState

Function OH_ArkUI_GetNavDestinationState 

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

Obtain the state of the NavDestination component where the node is located.

§Arguments

  • node - The node.

  • state - The state value of NavDestination is written back into 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 state 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