| Crates.io | makepad-android-state |
| lib.rs | makepad-android-state |
| version | 0.9.0 |
| created_at | 2024-05-02 17:41:06.16185+00 |
| updated_at | 2025-05-11 20:42:58.13676+00 |
| description | Exposes access to Makepad's context states on Android |
| homepage | https://github.com/makepad/makepad/ |
| repository | https://github.com/makepad/makepad/ |
| max_upload_size | |
| id | 1227935 |
| size | 8,582 |
This crate is responsible for holding Makepad's Android-specific context states. It exists solely to allow external crates to access those Android states without depending on the entirety of Makepad.
These two states are:
Note: you probably want to use the
robius-android-envcrate instead of using this crate directly, or an even higher-level crate that depends onrobius-android-env.
External users of this crate should only care about two functions:
get_java_vm(): returns a pointer to the JavaVM instance,
through which you can obtain the JNI environment.get_activity(): returns a pointer to the current Makepad Activity instance.All other functions are intended for Makepad-internal use only, and will not be useful for external users.