Class Album

The Switch.Album class allows for interacting with the Switch's photo gallery, providing access to the screenshots / video recordings that the user has saved.

It is a Set subclass, which contains entries of Switch.AlbumFile instances.

Example

import { CapsAlbumStorage } from '@nx.js/constants';

const album = new Switch.Album(CapsAlbumStorage.Sd);
for (const file of album) {
console.log(file);
}

Hierarchy

Constructors

  • Parameters

    • storage: number

    Returns Album

Properties

[toStringTag]: string
size: number

Returns

the number of (unique) elements in Set.

storage: number
[species]: SetConstructor

Methods

  • Returns IterableIterator<AlbumFile>

  • Appends a new element with a specified value to the end of the Set.

    Parameters

    Returns Album

  • Returns void

  • Removes a specified value from the Set.

    Parameters

    Returns boolean

    Returns true if an element in the Set existed and has been removed, or false if the element does not exist.

  • Executes a provided function once per each value in the Set object, in insertion order.

    Parameters

    • callbackfn: ((value, value2, set) => void)
    • Optional thisArg: any

    Returns void

  • Parameters

    Returns boolean

    a boolean indicating whether an element with the specified value exists in the Set or not.

  • Returns IterableIterator<AlbumFile>

  • Returns IterableIterator<AlbumFile>

Generated using TypeDoc