pub trait Runtime: Send + Sync {
// Required methods
fn java_vm(&self) -> &JavaVM;
fn context(&self) -> &GlobalRef;
fn class_loader(&self) -> &GlobalRef;
}
Available on Android only.
Expand description
A layer to access the Android runtime which is hosting the current application process.
Generally this trait should be implemented in your Rust app component’s FFI initialization layer.
Required Methods§
Sourcefn class_loader(&self) -> &GlobalRef
fn class_loader(&self) -> &GlobalRef
Returns a reference to the class returned by the current JVM’s getClassLoader
call.