setSelectedPosition

fun setSelectedPosition(position: Int)

Changes the selected item immediately without any scroll animation.

Parameters

position

adapter position of the item to select


fun setSelectedPosition(position: Int, task: ViewHolderTask)

Performs a task on a ViewHolder at a given position after scrolling to it.

Parameters

position

Adapter position of the item to select

task

Task to executed on the ViewHolder at the given position