foo-webview-sdk
    Preparing search index...

    Interface LibraryGetStatsSuccess

    Successful response from library.getStats.

    interface LibraryGetStatsSuccess {
        cacheValid: boolean;
        lastModified: number;
        success: true;
        totalAlbums: number;
        totalArtists: number;
        totalDuration: number;
        totalSize: number;
        totalTracks: number;
    }
    Index
    cacheValid: boolean

    Whether the host holds cached library results written since the cache was last dropped.

    lastModified: number

    When the cache was last dropped, in milliseconds since the Unix epoch.

    success: true

    Always true here; a failed call resolves with ApiFailure instead.

    totalAlbums: number

    Albums, counted by album name plus album artist, as library.getAlbums groups them.

    totalArtists: number

    Credited artists: every value of a multi-value artist counts, matching the entry count of library.getArtists.

    totalDuration: number

    Summed length of all tracks, in seconds.

    totalSize: number

    Summed file size, in bytes.

    totalTracks: number

    Tracks in the library.