epoxy-adapter / com.airbnb.epoxy / EpoxyModel / onFailedToRecycleView

onFailedToRecycleView

open fun onFailedToRecycleView(@NonNull view: T): Boolean

Called if the RecyclerView failed to recycle this model's view. You can take this opportunity to clear the animation(s) that affect the View's transient state and return true so that the View can be recycled. Keep in mind that the View in question is already removed from the RecyclerView.

Return
Boolean: True if the View should be recycled, false otherwise

See Also
EpoxyAdapter#onFailedToRecycleView(androidx.recyclerview.widget.RecyclerView.ViewHolder)