Click or drag to resize

SelectionExampleOnBeforeRecycleOrDisableCellViewsHolder Method

The only important callback for inheritors. It provides cell's views holder which has just become visible and whose views should be updated from its corresponding data model. viewsHolder.ItemIndex(ItemIndex) can be used to know what data model is associated with.

Namespace:  frame8.ScrollRectItemsAdapter.SelectionExample
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected override void OnBeforeRecycleOrDisableCellViewsHolder(
	MyCellViewsHolder viewsHolder,
	int newItemIndex
)

Parameters

viewsHolder
Type: frame8.ScrollRectItemsAdapter.SelectionExampleMyCellViewsHolder
The cell's views holder
newItemIndex
Type: SystemInt32
Version Information

Optimized ScrollView Adapter

Supported in: 4.0, 3.0
See Also