OH_ArkUI_NativeModule_InvalidateAttributes

Function OH_ArkUI_NativeModule_InvalidateAttributes 

Source
pub unsafe extern "C" fn OH_ArkUI_NativeModule_InvalidateAttributes(
    node: ArkUI_NodeHandle,
) -> i32
Available on crate features api-12 and api-21 only.
Expand description

Triggers node updates in the current frame. When node attributes are modified after the current frame’s build phase (i.e., after the unified processing of dirty nodes), the node updates will be deferred to the next frame. This function forces immediate node updates within the current frame to ensure rendering effects are applied synchronously.

§Arguments

  • node - ArkUI_NodeHandle pointer.

§Returns

  • Error code. [ARKUI_ERROR_CODE_NO_ERROR] Success. [ARKUI_ERROR_CODE_PARAM_INVALID] Function parameter exception.

Available since API-level: 21