foo-webview-sdk
    Preparing search index...

    Interface PlaylistMoveTracksParams

    Parameters for playlist.moveTracks. Move the selected rows of a playlist by delta positions, saving an undo point first. When items is specified, it replaces the current selection before moving, and the caller's own selection is lost. A locked playlist fails with LOCKED.

    interface PlaylistMoveTracksParams {
        delta: number;
        expectedVersion?: string;
        items?: number[];
        playlist?: number;
        playlistGuid?: string;
    }
    Index
    delta: number

    How many positions to move: negative towards the top, positive towards the bottom.

    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?: number[]

    Target row indices to move; specified indices replace the current playlist selection before moving. When omitted or empty, moves the currently selected rows.

    playlist?: number

    Index of the playlist; omitted, the active playlist. An index past the last playlist fails with INVALID_INDEX; with this omitted and no active playlist the call fails with NO_ACTIVE_ITEM.

    playlistGuid?: string

    Persistent unique identifier of a playlist (bracketed GUID, case-insensitive), used in place of a mutable index. Mutually exclusive with playlist; passing both or an invalid format fails with INVALID_PARAMS. Fails with NOT_FOUND if the playlist does not exist, never falling back. Invalid-format and not-found failures return the given GUID in details.playlistGuid.