pub unsafe extern "C" fn OH_ArkUI_NodeAdapter_GetAllItems(
handle: ArkUI_NodeAdapterHandle,
items: *mut *mut ArkUI_NodeHandle,
size: *mut u32,
) -> i32Available on crate feature
api-12 only.Expand description
Obtains all elements stored in the specified adapter.
This API returns the pointer to the array of the elements. You need to manually release the memory data to which the pointer points.
§Arguments
-
handle- Indicates the target component adapter. -
items- Indicates the pointer to the array of the elements in the adapter. -
size- Indicates the number of elements.
§Returns
- Returns the error 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: 12