readImage
Module @netwiv/api/plugins/clipboard-manager · Kind Function
import { readImage } from '@netwiv/api/plugins/clipboard-manager';Gets the clipboard content as Uint8Array image.
Platform-specific
Section titled “Platform-specific”- Android / iOS: Not supported.
Signature
Section titled “Signature”function readImage(): Promise<Image>Example
Section titled “Example”import { readImage } from '@netwiv/api/plugins/clipboard-manager';
const clipboardImage = await readImage();const blob = new Blob([await clipboardImage.rgba()], { type: 'image' })const url = URL.createObjectURL(blob)Upstream since 2.0.0
Descriptions come from the pinned @tauri-apps/plugin-clipboard-manager@2.3.3 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.