Crates.io | makepad-android-state |
lib.rs | makepad-android-state |
version | 0.1.0 |
source | src |
created_at | 2024-05-02 17:41:06.16185 |
updated_at | 2024-05-02 17:41:06.16185 |
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 | 7,856 |
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-env
crate 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.