Com.ForbiddenByte.OSA.Demos.IncrementalItemFetch Namespace |
Class | Description | |
---|---|---|
ExampleItemModel | ||
IncrementalItemFetchExample |
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.
| |
IncrementalItemFetchSceneEntry | Hookup between the DrawerCommandPanel and the adapter to isolate example code from demo-ing and navigation code | |
MyItemViewsHolder | ||
MyParams |