OH_ArkUI_RenderNodeUtils_Invalidate

Function OH_ArkUI_RenderNodeUtils_Invalidate 

Source
pub unsafe extern "C" fn OH_ArkUI_RenderNodeUtils_Invalidate(
    node: ArkUI_NodeHandle,
) -> i32
Available on crate feature api-20 only.
Expand description

Mark dirty the node handle. Invalidate the specified node, causing its lifecycle and triggering a rerender of its child render nodes.

§Arguments

  • node - Target node.

§Returns

  • Error code. [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. [ARKUI_ERROR_CODE_CAPI_INIT_ERROR] if CAPI init error. [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.

Available since API-level: 20