31 lines
928 B
Rust
31 lines
928 B
Rust
mod access;
|
|
mod attr;
|
|
mod ime;
|
|
mod input;
|
|
mod insets;
|
|
mod platform;
|
|
mod render;
|
|
mod view;
|
|
|
|
pub use insets::Insets;
|
|
pub use render::AndroidRenderer;
|
|
pub use view::{
|
|
AndroidAppState, AndroidUiState, HasAndroidUiState, IrisViewPeer, WindowInsets, new_peer,
|
|
};
|
|
|
|
/// Registers the extra native methods this backend needs beyond what
|
|
/// `android_view::register_view_class` covers (window insets -- see
|
|
/// `insets.rs`'s doc comment for why that one could not ride along on an
|
|
/// existing android-view callback the way the back gesture does). Call
|
|
/// from `JNI_OnLoad` alongside `register_view_class`, on the same `View`
|
|
/// subclass.
|
|
pub fn register_native_methods<'local, 'other_local>(
|
|
env: &mut android_view::jni::JNIEnv<'local>,
|
|
class: impl android_view::jni::descriptors::Desc<
|
|
'local,
|
|
android_view::jni::objects::JClass<'other_local>,
|
|
>,
|
|
) {
|
|
insets::register_native_methods(env, class);
|
|
}
|