Offers the ability to write to the clipboard. Reading is not supported because the clipboard can already be read through the standard web platform APIs.

Permissions: clipboardWrite

Not allowed in: Content scripts, Devtools pages

_SetImageDataImageType
setImageData
_SetImageDataImageType: "jpeg" | "png"

The type of imageData.

  • Copy an image to the clipboard. The image is re-encoded before it is written to the clipboard. If the image is invalid, the clipboard is not modified.

    Parameters

    • imageData: ArrayBuffer

      The image data to be copied.

    • imageType: _SetImageDataImageType

      The type of imageData.

    Returns Promise<void>