Creates an Application
instance from the ID of an
installed application.
The ID of the installed application.
const app = new Switch.Application(0x100bc0018138000n);
console.log(app.name);
Creates an Application
instance from an ArrayBuffer
containing the contents of a .nro
homebrew application.
The contents of the .nro
file.
const nro = await Switch.readFile('sdmc:/hbmenu.nro');
const app = new Switch.Application(nro);
console.log(app.name);
Readonly
authorThe author or publisher of the application.
Optional
Readonly
iconThe raw JPEG data for the cover art of the application. Can be decoded with the Image
class.
Readonly
idThe 64-bit unique identifier of the application (PresenceGroupId
).
Readonly
nacpThe raw NACP data of the application. Use the @tootallnate/nacp
module to parse this data.
Readonly
nameThe name of the application.
Readonly
versionThe version of the application.
Static
selfAn Application
instance representing the currently running application.
Creates the Cache storage for this Application for the specified save index ID.
The save index ID. Defaults to 0
.
Creates the Save Data for this Application for the provided user profile.
const profile = Switch.currentProfile({ required: true });
app.createSaveData(profile);
Static
[iterator]Generated using TypeDoc
Represents an installed application (game) on the console, or a homebrew application (
.nro
file).Can be used as an iterator to retrieve the list of installed applications.
Example