foo-webview-sdk
    Preparing search index...

    Interface LibraryGetAllParams

    Parameters for library.getAll. Tracks of the whole library in library order, one page at a time. A request from offset 0 that covers every track is kept until the library changes, and a later call from offset 0 with useCache is answered from it. With asyncResult, such a request, when it is not answered from the kept list, is built off the main thread: the call answers { pending: true, requestId } at once and the page arrives as the library:getAllResult event on the calling window.

    interface LibraryGetAllParams {
        asyncResult?: boolean;
        limit?: number;
        offset?: number;
        useCache?: boolean;
    }
    Index
    asyncResult?: boolean

    Build a request from offset 0 that covers every track off the main thread and deliver it as the library:getAllResult event; takes effect only with useCache, and not when the kept list answers.

    false
    
    limit?: number

    Most tracks to return.

    100
    
    offset?: number

    Tracks to skip.

    0
    
    useCache?: boolean

    From offset 0, answer from the kept list when there is one. A request from offset 0 that covers every track is kept either way.

    true