constclipboard:object
Defined in: clipboard.ts:62
clear: () =>
Promise<void>
Clears the clipboard of all contents (text, images, files).
Promise<void>
readImage: () =>
Promise<Uint8Array<ArrayBufferLike> |null>
Reads an image from the clipboard as PNG bytes (null when the clipboard
holds no image). Ztron divergence: Tauri v2 returns an Image; here the
raw PNG bytes are returned directly — wrap with Image.fromBytes for a
registered image.
Promise<Uint8Array<ArrayBufferLike> | null>
readText: () =>
Promise<string|null>
Promise<string | null>
writeImage: (
image) =>Promise<void>
Writes an image to the clipboard. Accepts raw PNG bytes (Uint8Array /
number[] / ArrayBuffer) or a registered Image (re-encoded host-side).
ArrayBuffer | number[] | Uint8Array<ArrayBufferLike> | Image
Promise<void>
writeText: (
text) =>Promise<void>
string
Promise<void>
clear():
Promise<void>
Defined in: clipboard.ts:58
Clears the clipboard of all contents (text, images, files).
Promise<void>
readHtml():
Promise<string|null>
Defined in: clipboard.ts:48
Reads the clipboard HTML flavor (null when not present).
Promise<string | null>
readImage():
Promise<Uint8Array<ArrayBufferLike> |null>
Defined in: clipboard.ts:18
Reads an image from the clipboard as PNG bytes (null when the clipboard
holds no image). Ztron divergence: Tauri v2 returns an Image; here the
raw PNG bytes are returned directly — wrap with Image.fromBytes for a
registered image.
Promise<Uint8Array<ArrayBufferLike> | null>
readText():
Promise<string|null>
Defined in: clipboard.ts:5
Promise<string | null>
writeHtml(
html):Promise<void>
Defined in: clipboard.ts:53
Writes HTML to the clipboard (with a plain-text fallback).
string
Promise<void>
writeImage(
image):Promise<void>
Defined in: clipboard.ts:29
Writes an image to the clipboard. Accepts raw PNG bytes (Uint8Array /
number[] / ArrayBuffer) or a registered Image (re-encoded host-side).
ArrayBuffer | number[] | Uint8Array<ArrayBufferLike> | Image
Promise<void>
writeText(
text):Promise<void>
Defined in: clipboard.ts:8
string
Promise<void>