foo-webview-sdk
    Preparing search index...

    Interface LibraryQueryParams

    Parameters for library.query. Tracks matching a foobar2000 query, optionally sorted by sort, up to limit. A query the parser rejects fails with INVALID_PARAMS and details.param query, and so does one carrying SORT BY; many malformed queries are not rejected but simply match nothing. The rows are written off the main thread. Fails with LIBRARY_DISABLED when the library is disabled.

    interface LibraryQueryParams {
        fields?: string[];
        limit?: number;
        query: string;
        sort?: string;
    }
    Index
    fields?: string[]

    Keys each row carries; omitted, every key of a library track row. Names are matched case-sensitively against those keys: index, handle, title, artist, artists, album, albumId, albumArtist, albumArtists, genre, date, trackNumber, discNumber, duration, path, absolutePath, fileSize, bitrate, sampleRate, channels, codec, subsong and rating. An unknown name fails with INVALID_PARAMS and is listed in details.unknownFields. The optional albumId is omitted when the track has none, even when requested.

    limit?: number

    Most rows to return; total still counts every match.

    100
    
    query: string

    foobar2000 query expression.

    sort?: string

    Title Formatting expression to sort the matches by before limit applies; empty keeps library order, and an expression that fails to compile is ignored.

    ""