OH_ArkUI_NodeAdapter_MoveItem

Function OH_ArkUI_NodeAdapter_MoveItem 

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

Instructs the specified adapter to move certain elements.

§Arguments

  • handle - Indicates the target component adapter.

  • from - Indicates the start position of the elements to move.

  • to - Indicates the end position of the elements to move.

§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