libs/android_state/README.md
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.