Click or drag to resize

Com.ForbiddenByte.OSA.Demos.IncrementalItemFetch Namespace

 
Classes
  ClassDescription
Public classExampleItemModel
Public classIncrementalItemFetchExample
This class demonstrates how items can be appended at the bottom as needed (i.e. when the user acually scrolls there), as opposed to directly downloading all of them. This is useful if the number of items can't be known beforehand (because of reasons). Also, here it's demonstrated how items can be set custom sizes by overriding CollectItemsSizes(ItemCountChangeMode, Int32, Int32, ItemsDescriptor) Use this approach if it's impossible to know the total number of items in advance or there's simply too much overhead. If the number of items IS known, consider using placeholder prefabs with a "Loading..." text on them (which may also make for a nicer UX) while they're being downloaded/processed. The placeholder approach is implemented in GridExample - be sure to check it out if interested.
Public classIncrementalItemFetchSceneEntry
Hookup between the DrawerCommandPanel and the adapter to isolate example code from demo-ing and navigation code
Public classMyItemViewsHolder
Public classMyParams