foo-webview-sdk
    Preparing search index...

    Interface ClipboardReadSuccess

    Successful response from clipboard.read.

    interface ClipboardReadSuccess {
        files?: string[];
        hasFiles: boolean;
        hasImage: boolean;
        hasText: boolean;
        success: true;
        text: string;
    }
    Index
    files?: string[]

    The file paths, present only when hasFiles is true.

    hasFiles: boolean

    The clipboard holds a file list (CF_HDROP) with at least one file.

    hasImage: boolean

    The clipboard holds a bitmap (CF_DIB or CF_BITMAP). The image itself is not returned.

    hasText: boolean

    The clipboard holds text (CF_UNICODETEXT or CF_TEXT).

    success: true

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

    text: string

    The text; empty when the clipboard holds none.