tauri_sys::clipboard

Function read_text

source
pub async fn read_text() -> Result<String, Error>
Expand description

Gets the clipboard content as plain text.

ยงExample

use tauri_api::clipboard::read_text;

let clipboard_text = read_text().await;

Requires allowlist > clipboard > readText to be enabled.