#clipboard #android #text

android_clipboard

Access Android clipboard

1 unstable release

new 0.1.0 Jan 5, 2025

#524 in GUI

Download history 117/week @ 2025-01-01

117 downloads per month

MIT license

6KB
115 lines

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());
}

Dependencies

~1–12MB
~83K SLoC