onViewsRecycled

open fun onViewsRecycled(@IntRange(from = 0) pageIndex: Int, @NonNull views: List<View>)

Called when views that have been previously returned by getViewsForPage have been recycled because their hosting page was recycled.

Parameters

pageIndex

The page for which the views were recycled.

views

The views that were recycled. These views are no longer part of the view hierarchy and can be reused again.