OH_ArkUI_NodeAdapter_RemoveItem

Function OH_ArkUI_NodeAdapter_RemoveItem 

Source
pub unsafe extern "C" fn OH_ArkUI_NodeAdapter_RemoveItem(
    handle: ArkUI_NodeAdapterHandle,
    startPosition: u32,
    itemCount: u32,
) -> i32
Available on crate feature api-12 only.
Expand description

Instructs the specified adapter to remove certain elements.

§Arguments

  • handle - Indicates the target component adapter.

  • startPosition - Indicates the start position of the elements to remove.

  • itemCount - Indicates the number of the elements to remove.

§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