Inquiry about Sliding/Gallery View API for Custom App Development

Hello Nextcloud community,

I鈥檓 developing a custom app for Nextcloud that involves displaying image metadata. I鈥檇 like to implement a sliding/gallery view similar to the one used in the native Files app for image previews.

Is there an existing API or recommended method to implement this sliding view functionality in a custom app? Specifically, I鈥檓 looking for:

  1. A way to open a full-screen sliding view for images
  2. Methods to navigate between images in this view
  3. Ability to display custom content (in my case, metadata) alongside the image

If there鈥檚 no specific API for this, are there any best practices or examples of how to implement such functionality in a way that鈥檚 consistent with Nextcloud鈥檚 UI and UX?

Any guidance, documentation links, or code examples would be greatly appreciated.

Thank you for your time and assistance!

I can鈥檛 give you any details on how it is done today, but there is some discussion about a new API for upcoming releases. Maybe mentioning your requirements there makes sense? See [RFC] Viewer 4.0 API 路 Issue #2395 路 nextcloud/viewer 路 GitHub

Thank you for sharing. I hope for the continued development and growth of the Nextcloud ecosystem.