#clipboard #android #text

android_clipboard

Access Android clipboard

1 unstable release

0.1.0 Jan 5, 2025

#504 in GUI

Download history 117/week @ 2025-01-01 19/week @ 2025-01-08

136 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