Function ndk_glue::native_activity
source · [−]pub fn native_activity() -> &'static NativeActivity
Expand description
This function accesses a static
variable internally and must only be used if you are sure
there is exactly one version of ndk_glue
in your dependency tree.
If you need access to the JavaVM
through NativeActivity::vm()
or Activity Context
through NativeActivity::activity()
, please use the ndk_context
crate and its
ndk_context::android_context()
getter to acquire the JavaVM
and Context
instead.