Closed LauraWebdev closed 6 months ago
@LauraWebdev I've added a preliminary version of the new API in https://github.com/TooTallNate/nx.js/pull/120, which I believe covers the use cases in your examples. Let me know if there's any features missing that you would like to see.
It would be awesome if one could access the Switch album through nxjs, people could, for example, create apps that upload the taken screenshots to an online service, or serve a simple webapp for browsing the screenshot files on their PC (like on the stock OS with the mobile app feature).
I've tried to come up with a small data schema for reading album entries by looking at the documentation over at https://switchbrew.org/wiki/Capture_services and tried to fit it into a JS API as best as I could. I bet there is tons of room for improvement, especially coming from a TypeScript standpoint.
Data Schema
I'm sure we will need to manually mount/unmount the album, especially since they can get quite big. File & thumbnail were set as blob in this schema because that's what ultimately is utilized with Switch.Application's icons already.
Examples
I've tried to come up with three examples utilizing the API.
Example 1 (List Metadata)
Example 2 (Displaying album in a grid)
Example 3 (Count album entries by app)