restoreState

fun restoreState(holder: RecyclerView.ViewHolder, key: String, consume: Boolean = false)

Parameters

holder

ViewHolder to be restored

key

unique identifier for holder

consume

true to prevent this state from being restored multiple times, or false to still keep it. Default: false