Crates.io | robius-android-env |
lib.rs | robius-android-env |
version | 0.2.0 |
source | src |
created_at | 2024-05-20 22:42:39.976408 |
updated_at | 2024-10-31 22:26:47.910749 |
description | Rust access to Android state (native Java objects) managed by UI toolkits |
homepage | https://robius.rs/ |
repository | https://github.com/project-robius/robius-android-env |
max_upload_size | |
id | 1246257 |
size | 9,634 |
robius-android-env
This crate provides easy Rust access to Android state (native Java objects) managed by UI toolkits.
This crate exists for two kinds of downstream users:
makepad
Cargo feature.For any other UI toolkits that support ndk-context, you don't need to enable any cargo features.
However, either your application code or the UI toolkit must manually initialize the Android context
owned by ndk-context, i.e., by invoking initialize_android_context()
.
Some UI toolkits automatically do this for you, typically via the ndk-glue crate.