Click or drag to resize

OSATParams, TItemViewsHolderChangeItemsCount Method

Self-explanatory. See ItemCountChangeMode in order to understand how change modes differ from each other.

Every count change operation (Refresh(Boolean, Boolean), InsertItems(Int32, Int32, Boolean, Boolean) etc.) ultimately calls this method, so it's a good place for example to fire a custom "ItemsChanged" event, if you need to

Namespace:  Com.ForbiddenByte.OSA.Core
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public virtual void ChangeItemsCount(
	ItemCountChangeMode changeMode,
	int itemsCount,
	int indexIfInsertingOrRemoving = -1,
	bool contentPanelEndEdgeStationary = false,
	bool keepVelocity = false
)

Parameters

changeMode
Type: Com.ForbiddenByte.OSA.CoreItemCountChangeMode
itemsCount
Type: SystemInt32
indexIfInsertingOrRemoving (Optional)
Type: SystemInt32
contentPanelEndEdgeStationary (Optional)
Type: SystemBoolean
keepVelocity (Optional)
Type: SystemBoolean

Implements

IOSAChangeItemsCount(ItemCountChangeMode, Int32, Int32, Boolean, Boolean)
Version Information

Optimized ScrollView Adapter

Supported in: 4.1
See Also