How to use AdwCarousel to scroll throw a dynamic set of photos

I want to implement a photo viewer like app that is swipeable.

My problems with using AdwCarousel is that i can’t see how this is controlled dynamically with keeping resources limited and using virtual on demand loading of pages. Factories are everywhere in Gtk4 now but not in in Adwaita. If possible always only keeping two photos in memory at the same time.

Is it possible to get a callback when a swipe is trigged? So i can check if there is a next photo available, load and then start the swipe programmatically?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.