#[rustfmt::skip] // This file has been automatically generated by `jnim` from `InputQueueCallback.class`. // DO NOT EDIT use jnim::*; pub trait InputQueueCallback: AsRef { fn input_queue_callback_class(env: Option<&JEnv>) -> Option { const NAME: &'static [u8] = b"android/view/InputQueue$Callback\0"; static CACHE: CachedID = CachedID::new(); CACHE.get(|| JEnv::env(env)?.find_class(NAME)) } fn on_input_queue_created<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::InputQueue) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::input_queue_callback_class(Some(env))?.method(env, b"onInputQueueCreated\0", b"(Landroid/view/InputQueue;)V\0"))? .call(env, self.as_ref(), (arg0,)) } fn on_input_queue_destroyed<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::InputQueue) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::input_queue_callback_class(Some(env))?.method(env, b"onInputQueueDestroyed\0", b"(Landroid/view/InputQueue;)V\0") })? .call(env, self.as_ref(), (arg0,)) } } pub struct InputQueueCallbackObject { __object: JObject, } impl InputQueueCallback for InputQueueCallbackObject {} impl JNameMaker for InputQueueCallbackObject { const JAVA_PATH: &'static [u8] = b"android/view/InputQueue$Callback\0"; } impl JPlainMarker for InputQueueCallbackObject { fn class(env: Option<&JEnv>) -> Option { static CACHE: CachedID = CachedID::new(); CACHE.get(|| JEnv::env(env)?.find_class(Self::JAVA_PATH)) } } impl core::ops::Deref for InputQueueCallbackObject { type Target = JObject; fn deref(&self) -> &Self::Target { &self.__object } } impl AsRef for InputQueueCallbackObject { fn as_ref(&self) -> &JObject { &self.__object } } #[test] fn test_type_zero() { assert_eq!(0, std::mem::size_of::()); }