moveItem

open override fun moveItem(fromPosition: Int, toPosition: Int, onResult: (ListAdapterResult) -> Unit?)

Moves an item from one position to another.

아이템을 한 위치에서 다른 위치로 이동합니다.

Parameters

fromPosition

The current position of the item to move.

이동할 아이템의 현재 위치입니다.

toPosition

The target position to move the item to.

아이템을 이동할 목표 위치입니다.

onResult

Callback invoked when the queue operation reaches terminal state (nullable).

큐 연산이 종료 상태에 도달하면 호출되는 결과 콜백입니다(null 가능).