Hi all!
I'm working on adding CarPlay integration to a music player app and have a question about loading images in the SDK...
I have a CPListTemplate screen displaying albums, and this screen potentially needs to display hundreds of items in a single section for some users.
I'm not having any trouble populating the text content of these items, but the associated images may need fetched asynchronously. I looked into calling listItem.setImage(...) on my list items and template.updateSections(...) with updated content once it is loaded, but in both of these cases the scroll position in my Simulator is interrupted and pushed to the top, causing a bad user experience.
Is there a better way to go about updating content live? Or must I prefetch the needed images and only push the template when all data is ready for display?
As a note I've additionally noticed lag building a list of around ~100 items when I set a simple placeholder image at list item creation time. Has anyone else experienced this? Hoping this is just the Simulator - will have a head unit to test next week!
Edit: also, any chance that WWDC 2021 will have a labs session for the CarPlay SDK? :)
Thanks!
-Colin