Crate android_clipboard

Crate android_clipboard 

Source
Expand description

Access text in the Android clipboard from Rust using a simple API.

use android_clipboard::{get_text, set_text};

fn hello() {
    set_text("Hello, Android clipboard!".to_string());
    println!("{}", get_text().unwrap());
}

Enums§

Error

Functions§

clear
Clear the clipboard.
get_text
Get the text from the clipboard.
set_text
Put the given text into the clipboard.