[TIMOB-23836] iOS10: Support UITableView data-source prefetching
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-08-30T07:22:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.1.0 |
Components | iOS |
Labels | ios10, prefetching, tableview |
Reporter | Hans Knöchel |
Assignee | Hans Knöchel |
Created | 2016-08-29T21:24:28.000+0000 |
Updated | 2016-11-28T21:53:13.000+0000 |
Description
iOS 10 offers a new way to prefetch items before they are visible in the actual visible area. This allows the developer to be notified when items are fetched so he/she can react on that beforehand (e.g. for preloading images already).
{quote}
The indexPaths are ordered ascending by geometric distance from the table view
{quote}
Along with that, the user can also be notified when items that previously qualified for prefetching were not actually displayed. For both cases, we can expose them using the events
prefetch
and cancelprefetch
.
PR: https://github.com/appcelerator/titanium_mobile/pull/8285 Demo:
CR and FT passed. Scroll the list view to see the prefetch events.
Verified, was able to see the
prefetch
information in the console (Using the code provided above). Example of the information shown in the console can be seen below.*Environment*