foo-webview-sdk
    Preparing search index...

    Interface DndGetPathsAsyncSuccess

    Successful response from dnd.getPathsAsync.

    interface DndGetPathsAsyncSuccess {
        paths: string[];
        resolvedPaths: (string | null)[];
        sessionId: string;
        source?: "external" | "self" | "other-window";
        success: true;
    }
    Index
    paths: string[]

    Real paths in DataTransfer.files order; empty when the session expired, carried no file list, or the document origin is not trusted with paths.

    resolvedPaths: (string | null)[]

    Target of the .lnk shortcut at the same index of paths, or null when the entry is not a shortcut, points at a shell object rather than a file, has a target too long to read back intact, or could not be resolved; never an empty string. A broken shortcut still reports the path it recorded. Always the same length as paths.

    sessionId: string

    Session the paths belong to; an empty string when no session was found, so a caller can tell "nothing to report" from "a session with no files".

    source?: "external" | "self" | "other-window"

    Where the session's drag came from, as in dnd:enter; absent when no session was found. Reported even when the paths are withheld, since it reveals no path.

    success: true

    Always true here; a failed call resolves with ApiFailure instead.