pub unsafe extern "C" fn OH_NativeXComponent_AttachNativeRootNode(
component: *mut OH_NativeXComponent,
root: ArkUI_NodeHandle,
) -> i32👎Deprecated since 20
Available on crate feature
api-12 only.Expand description
Attaches the UI component created through the native API of ArkUI to 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_AddNode