android-intent

Crates.ioandroid-intent
lib.rsandroid-intent
version0.2.1
sourcesrc
created_at2023-02-08 17:49:57.712196
updated_at2023-02-17 00:47:27.146534
descriptionAndroid intent utilities
homepage
repositoryhttps://github.com/rust-mobile/android-intent
max_upload_size
id780031
size8,126
Matt Hunzinger (matthunz)

documentation

README

android-intent

crate documentation

use android_activity::AndroidApp;
use android_intent::{with_current_env, Action, Extra, Intent};

#[no_mangle]
fn android_main(_android_app: AndroidApp) {
    with_current_env(|env| {
        Intent::new(env, Action::Send)
            .with_type("text/plain")
            .with_extra(Extra::Text, "Hello World!")
            .into_chooser()
            .start_activity()
            .unwrap()
    });
}
Commit count: 12

cargo fmt