The localStorage API provides a high-level interface for persisting data that is stored in the Switch's save data filesystem. Data stored into local storage is unique across user profiles and individual nx.js apps, and will be persisted across subsequent launches of the app.
The user selection dialog will be shown upon accessing the localStorage object, if the app was not launched with a profile selected.
The low-level save data interface allows mounting the save data filesystem for any installed application and for the various types of save data filesystems (account, cache, bcat, etc.).
Use the Switch.Application class to mount a save data filesystem: