pub unsafe extern "C" fn OH_ArkUI_NativeModule_RemoveAdoptedChild(
node: ArkUI_NodeHandle,
child: ArkUI_NodeHandle,
) -> i32Available on crate features
api-12 and api-22 only.Expand description
Remove the target adopted child node.
§Arguments
-
node- ArkUI_NodeHandle pointer, the parent node. -
child- ArkUI_NodeHandle pointer, the node being removed.
§Returns
- Error code.
[
ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. [ARKUI_ERROR_CODE_CAPI_INIT_ERROR] if the CAPI init error. [ARKUI_ERROR_CODE_NODE_IS_NOT_IN_ADOPTED_CHILDREN] This child node is not adopted by the parent node.
Available since API-level: 22