Re-exports§
pub use jni;
pub use crate::interop::*;
pub use crate::j2r::*;
pub use crate::r2j::*;
pub use crate::exception::*;
Macros§
Structs§
- JClass
- Lifetime’d representation of a
jclass
. Just aJObject
wrapped in a new class. - JNIEnv
- FFI-compatible JNIEnv struct. You can safely use this as the JNIEnv argument to exported methods that will be called by java. This is where most of the magic happens. All methods on this object are wrappers around JNI functions, so the documentation on their behavior is still pretty applicable.
- JObject
- Wrapper around [
sys::jobject
] that adds a lifetime to ensure that the underlying JNI pointer won’t be accessible to safe Rust code if the object reference is released. - JString
- Lifetime’d representation of a
jstring
. Just aJObject
wrapped in a new class.
Type Aliases§
- JByte
Array - Lifetime’d representation of a
crate::sys::jbyteArray
which wraps aJObject
reference - jboolean
- jbyte
- jchar
- jdouble
- jfloat
- jint
- jlong
- jshort