OH_ArkUI_GetRouterPageState

Function OH_ArkUI_GetRouterPageState 

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

Obtain the state of the page where the node is located.

§Arguments

  • node - The node.

  • state - The state value of the page 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 state is null. [ARKUI_ERROR_CODE_GET_INFO_FAILED] if query information failed, this may be because the node is not in RouterPage.

Available since API-level: 12