An interface that allows the system to detect and respond to changes in your data.
- tvOS 13.0+
- TVMLKit JS
Data 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
Data interface makes it easy to lazily load objects. When you want to load an element into the UI, append it to the
Data. TVMLKit will trigger the
loadindexes event when it recognizes the need to fill in certain indexes.
Data 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
Data to suit your needs.