restore

fun restore(recyclerView: DpadRecyclerView, key: String, adapter: RecyclerView.Adapter<*>)

Call this when the ViewHolder is bound and after adapter contents are updated in RecyclerView.Adapter.onBindViewHolder.

Ensure that adapter contains the dataset before calling this method

Parameters

recyclerView

RecyclerView to be restored

key

unique identifier for recyclerView

adapter

adapter to be bound to this RecyclerView