pub unsafe extern "C" fn OH_ArkUI_RenderNodeUtils_GetChildren(
node: ArkUI_RenderNodeHandle,
children: *mut *mut ArkUI_RenderNodeHandle,
count: *mut i32,
) -> i32Available on crate feature
api-20 only.Expand description
Retrieve all child render nodes of a parent render node. This function populates a list of child render nodes for the specified parent node. The caller is responsible for freeing the allocated child node array.
§Arguments
-
node- Handle to the target parent render node. -
children- Pointer to an array of child render node handles. -
count- Pointer to store the number of child nodes retrieved.
§Returns
- Error code.
[
ARKUI_ERROR_CODE_NO_ERROR] Success. [ARKUI_ERROR_CODE_PARAM_INVALID] Function parameter exception. [ARKUI_ERROR_CODE_CAPI_INIT_ERROR] if CAPI init error.
Available since API-level: 20