OH_ArkUI_RemoveSupportedUIStates

Function OH_ArkUI_RemoveSupportedUIStates 

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

Removes registered UI states. When all states registered using OH_ArkUI_AddSupportedUIStates are removed, the registered stateChangeHandler will no longer be executed.

§Arguments

  • node - Target node.

  • uiStates - Target UI states to be removed.

§Returns

  • Returns the result code. Returns [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.

Available since API-level: 20