Chartbreaker
    Preparing search index...

    Interface ClipboardItem

    The ClipboardItem interface of the Clipboard API represents a single item format, used when reading or writing clipboard data using Clipboard.read() and Clipboard.write() respectively. Available only in secure contexts.

    MDN Reference

    interface ClipboardItem {
        presentationStyle: PresentationStyle;
        types: readonly string[];
        getType(type: string): Promise<Blob>;
    }
    Index

    Properties

    Methods

    Properties

    presentationStyle: PresentationStyle

    The read-only presentationStyle property of the ClipboardItem interface returns a string indicating how an item should be presented.

    MDN Reference

    types: readonly string[]

    The read-only types property of the ClipboardItem interface returns an Array of MIME types available within the ClipboardItem.

    MDN Reference

    Methods

    • The getType() method of the ClipboardItem interface returns a Promise that resolves with a Blob of the requested MIME type or an error if the MIME type is not found.

      MDN Reference

      Parameters

      • type: string

      Returns Promise<Blob>