foo-webview-sdk
    Preparing search index...

    Interface LibraryGetAllResultPayload

    Payload of the library:getAllResult event. The page of a library.getAll that answered { pending: true, requestId }: the whole library in library order, built off the main thread. The list is kept for later calls only when the library did not change meanwhile. Sent to the page that made the call, or to a page under the same top-level window when that one cannot be found, or else to the main window's page.

    interface LibraryGetAllResultPayload {
        error?: string;
        fromCache: boolean;
        items: LibraryTrack[];
        limit: number;
        offset: number;
        requestId: string;
        total: number;
        tracks: LibraryTrack[];
    }
    Index
    error?: string

    Why the list could not be built; present only then.

    fromCache: boolean

    Always false.

    items: LibraryTrack[]

    The same list as tracks.

    limit: number

    The limit of the call.

    offset: number

    The offset of the call, always 0.

    requestId: string

    Id from the { pending: true, requestId } answer.

    total: number

    Tracks in the library when the call was made; 0 when error is present.

    tracks: LibraryTrack[]

    The whole library in library order; index is the position in the library. Empty when error is present.