DataSource
An interface that allows the system to detect and respond to changes in your data.
Declaration
interface DataSourceOverview
Use the DataSource interface to manage data represented as an array. You can modify your array and consequently generate a notification that makes the app aware of any data changes. Thus user interfaces can respond to changes in the array, without needing to repopulate the entire interface for every change.
For example, the DataSource interface makes it easy to lazily load objects. When you want to load an element into the UI, append it to the DataSource. TVMLKit will trigger the loadindexes event when it recognizes the need to fill in certain indexes.
DataSource is also useful when you implement an infinite scrolling feature using the needsmore event to request more data. When the needsmore event is triggered, you can make modifications to the DataSource to suit your needs.