OH_NativeXComponent_DetachNativeRootNode

Function OH_NativeXComponent_DetachNativeRootNode 

Source
pub unsafe extern "C" fn OH_NativeXComponent_DetachNativeRootNode(
    component: *mut OH_NativeXComponent,
    root: ArkUI_NodeHandle,
) -> i32
👎Deprecated since 20
Available on crate feature api-12 only.
Expand description

Detaches the native component of ArkUI from this OH_NativeXComponent instance.

§Arguments

  • component - Indicates the pointer to the OH_NativeXComponent instance.

  • root - Indicates the pointer to the component instance created by the native API.

§Returns

  • Returns the error code. Returns [OH_NATIVEXCOMPONENT_RESULT_SUCCESS] if the operation is successful. Returns [OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER] if a parameter error occurs.

Available since API-level: 12

Deprecated since 20 OH_ArkUI_NodeContent_RemoveNode