foo-webview-sdk
    Preparing search index...

    Interface QueueSetContentsParams

    Parameters for queue.setContents. Replace the whole queue with an ordered list of references. One unusable reference fails the whole call before anything is written. An empty list clears the queue. A playlist index is read as the call arrives, so one taken before the playlist list changed queues a row of another playlist; playlistGuid keeps naming the playlist it was read from. An entry giving both playlist and playlistGuid, or a malformed GUID, fails with INVALID_PARAMS, a GUID no playlist has with NOT_FOUND.

    interface QueueSetContentsParams {
        expectedVersion?: string;
        items: QueueContentRef[];
    }
    Index
    expectedVersion?: string

    Expected content version for optimistic concurrency control. When mismatched, mutations are aborted with STALE_TARGET (details.current carries current version). Omitted, no check is made.

    items: QueueContentRef[]

    The new queue, in order. At most max(256, current queue length) entries; more fail with INVALID_PARAMS.